Skip to content

Commit 099ef3b

Browse files
authored
Add auto cancellation for CI jobs (#1222)
when pushing new commits to the PR, cancel the previous jobs Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 1d566d4 commit 099ef3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ env:
66
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
77
CC_ENABLE_DEBUG_OUTPUT: true
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number || github.sha }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
test:
1115
name: Test

0 commit comments

Comments
 (0)