Skip to content

Commit 7fb5593

Browse files
committed
CI: do not cancel concurrent builds on the same branch
Instead, only cancel them if the builds have the same commit SHA.
1 parent 27e10c5 commit 7fb5593

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ defaults:
3131
run:
3232
shell: bash
3333
concurrency:
34-
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
34+
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}"
3535
cancel-in-progress: true
3636
jobs:
3737
pr:

Diff for: src/ci/github-actions/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ defaults:
301301
concurrency:
302302
# For a given workflow, if we push to the same PR, cancel all previous builds on that PR.
303303
# If the push is not attached to a PR, we will cancel all builds related to the same commit SHA.
304-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
304+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
305305
cancel-in-progress: true
306306

307307
jobs:

0 commit comments

Comments
 (0)