CI: do not cancel concurrent builds on the same branch
Instead, only cancel them if the builds have the same commit SHA.
This commit is contained in:
parent
27e10c5292
commit
7fb559353e
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -31,7 +31,7 @@ defaults:
|
|||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
|
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}"
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
pr:
|
pr:
|
||||||
|
@ -301,7 +301,7 @@ defaults:
|
|||||||
concurrency:
|
concurrency:
|
||||||
# For a given workflow, if we push to the same PR, cancel all previous builds on that PR.
|
# For a given workflow, if we push to the same PR, cancel all previous builds on that PR.
|
||||||
# If the push is not attached to a PR, we will cancel all builds related to the same commit SHA.
|
# If the push is not attached to a PR, we will cancel all builds related to the same commit SHA.
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user