Skip to content

Commit b29b347

Browse files
committed
CI: Allow redundant build requests to cancel running CodeQL jobs
1 parent ec6a77d commit b29b347

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ on:
88
schedule:
99
- cron: "46 2 * * 5"
1010

11+
# Allow job to be triggered manually.
12+
workflow_dispatch:
13+
14+
# Cancel in-progress jobs when pushing to the same branch.
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
1119
jobs:
1220
analyze:
1321
name: Analyze

0 commit comments

Comments
 (0)