Skip to content

Commit e42ff91

Browse files
committed
Cancel in-progress jobs for new pushes
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 8d0cb80 commit e42ff91

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/dep_fuzzing.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
type: string
1414
default: "false"
1515

16+
# Cancels old running job if a new one is triggered (e.g. by a push onto the same branch)
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
1621
permissions:
1722
id-token: write
1823
contents: read

.github/workflows/dep_rust.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
type: string
1313
default: "false"
1414

15+
# Cancels old running job if a new one is triggered (e.g. by a push onto the same branch)
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1520
env:
1621
CARGO_TERM_COLOR: always
1722
RUST_BACKTRACE: FULL

0 commit comments

Comments
 (0)