Skip to content

Commit cc95c74

Browse files
authored
Cancel in-progress workflow runs on new push (#403)
1 parent 54898a3 commit cc95c74

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/CPUTests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- '**'
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
cpu:
1014
name: "CPU tests"

.github/workflows/UnitTests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ on:
2626
# Run the job every 12 hours
2727
- cron: '0 */12 * * *'
2828

29+
concurrency:
30+
group: ${{ github.workflow }}-${{ github.ref }}
31+
cancel-in-progress: true
32+
2933
jobs:
3034
build:
3135
strategy:

0 commit comments

Comments
 (0)