Skip to content

Commit f1c9302

Browse files
ci: cancel previous runs on PR push
After this patch, current PR pipeline runs will be cancelled if new commits/force push triggers new pipelines.
1 parent ed71710 commit f1c9302

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/packing.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request_target:
77
types: [labeled]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
pack_pip:
1115
# We want to run on external PRs, but not on our own internal

.github/workflows/testing.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request_target:
77
types: [labeled]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
run_tests_ce_linux:
1115
# We want to run on external PRs, but not on our own internal

0 commit comments

Comments
 (0)