Skip to content

Commit 78e2f9b

Browse files
committed
CI: cancel stale workflows.
1 parent f01966a commit 78e2f9b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
pull_request:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
12+
913
env:
1014
CARGO_TERM_COLOR: 'always'
1115
RUST_BACKTRACE: '1'

.github/workflows/sanitizers.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
pull_request:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
12+
913
env:
1014
CARGO_TERM_COLOR: 'always'
1115
RUST_BACKTRACE: '1'

0 commit comments

Comments
 (0)