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:
Jakub Beránek 2023-06-26 16:40:12 +02:00
parent 27e10c5292
commit 7fb559353e
No known key found for this signature in database
GPG Key ID: 909CD0D26483516B
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ defaults:
run:
shell: bash
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
jobs:
pr:

View File

@ -301,7 +301,7 @@ defaults:
concurrency:
# 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.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs: