Skip to content

Commit 9dce3e2

Browse files
authored
Merge pull request RustPython#3833 from GoGim1/ci
Support cancel previous CI workflow
2 parents 48421ff + 372b7cc commit 9dce3e2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55

66
name: CI
77

8+
# Cancel previous workflows if they are the same workflow on same ref (branch/tags)
9+
# with the same event (push/pull_request) even they are in progress.
10+
# This setting will help reduce the number of duplicated workflows.
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
13+
cancel-in-progress: true
14+
815
env:
916
CARGO_ARGS: --features ssl,jit
1017
NON_WASM_PACKAGES: >

0 commit comments

Comments
 (0)