Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 093813b

Browse files
committedSep 4, 2024··
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 f85f3c5 commit 093813b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎.github/workflows/packing.yml

Lines changed: 4 additions & 0 deletions
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

Lines changed: 4 additions & 0 deletions
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)
Please sign in to comment.