Skip to content

Commit 3ba88ef

Browse files
committed
ci: Autocancel workflows
Signed-off-by: Ryan Northey <[email protected]>
1 parent 5d76116 commit 3ba88ef

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/format.yml

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

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

3640
addlicense:

.github/workflows/test.yml

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

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

3640
test_data:

0 commit comments

Comments
 (0)