Skip to content

Commit 97b1677

Browse files
Add concurrency limit in CI (#265)
With this change we'll cancel in-progress workflows when new code is pushed.
1 parent 2b91f33 commit 97b1677

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/cargo.yml

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

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
env:
1014
CARGO_TERM_COLOR: always
1115

.github/workflows/grcov.yml

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

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
env:
1014
CARGO_TERM_COLOR: always
1115

0 commit comments

Comments
 (0)