Skip to content

Commit f291183

Browse files
authored
Auto-cancel old GitHub Actions workflows. (#356)
Signed-off-by: Ryan Northey <[email protected]>
1 parent 5d76116 commit f291183

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/format.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ on:
3131
schedule:
3232
- cron: '0 0 * * *'
3333

34+
concurrency:
35+
36+
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }}
37+
cancel-in-progress: true
38+
3439
jobs:
3540

3641
addlicense:

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ on:
3131
schedule:
3232
- cron: '0 0 * * *'
3333

34+
concurrency:
35+
36+
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }}
37+
cancel-in-progress: true
38+
3439
jobs:
3540

3641
test_data:

0 commit comments

Comments
 (0)