You've already forked v8-code-style
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:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -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 }}
|
||||
|
||||
|
Reference in New Issue
Block a user