Skip to content

Commit 2e11831

Browse files
authored
Merge pull request #1273 from quickfix-j/copilot/codeql-analysis-cancel-duplicate-jobs
ci: cancel in-progress CodeQL runs on new PR commits
2 parents 750a85a + e1c83f4 commit 2e11831

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ on:
2020
# The branches below must be a subset of the branches above
2121
branches: [ master ]
2222

23+
# Check all pushes to production branches, but interrupt a PR job if a new commit is pushed.
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
26+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
27+
2328
jobs:
2429
analyze:
2530
name: Analyze

0 commit comments

Comments
 (0)