Skip to content

Commit 3c2b8b0

Browse files
committed
Cancel in-progress workflow runs after a push
1 parent fa06a37 commit 3c2b8b0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ permissions:
3030
defaults:
3131
run:
3232
shell: bash
33+
concurrency:
34+
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
35+
cancel-in-progress: true
3336
jobs:
3437
pr:
3538
permissions:

src/ci/github-actions/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ defaults:
305305
# shell is PowerShell.)
306306
shell: bash
307307

308+
concurrency:
309+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
310+
cancel-in-progress: true
311+
308312
jobs:
309313
pr:
310314
permissions:

0 commit comments

Comments
 (0)