1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2025-07-17 13:07:50 +02:00

Поддержка запуска анализа форков по метке

This commit is contained in:
Dmitriy Marmyshev
2021-10-14 10:53:52 +03:00
parent 3cdd2296be
commit e61035b233

View File

@ -17,13 +17,14 @@ jobs:
runs-on: ubuntu-latest
env:
PR_NUMBER: "${{ github.event_name == 'pull_request_target' && format(' -Dsonar.pullrequest.key={0}', github.event.pull_request.number) || '' }}"
PR_REF: "${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.pull_request.number) || '' }}"
steps:
- uses: actions/checkout@v2
if: inputs.analyze
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ env.PR_REF }}
- uses: actions/checkout@v2
if: ${{ !inputs.analyze }}