Skip to content

Commit 910616d

Browse files
authored
GitHub Actions: cancel outdated jobs (#1550)
1 parent 3df258a commit 910616d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches: [ main ]
88
workflow_dispatch:
99

10+
concurrency:
11+
group: build-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
1014
env:
1115
singularity_version: 3.6.4
1216

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
schedule:
99
- cron: '0 10 * * 2'
1010

11+
concurrency:
12+
group: build-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
CodeQL-Build:
1317

0 commit comments

Comments
 (0)