Skip to content

Commit

Permalink
CI: do not cancel concurrent builds on the same branch
Browse files Browse the repository at this point in the history
Instead, only cancel them if the builds have the same commit SHA.
  • Loading branch information
Kobzol committed Jun 26, 2023
1 parent 27e10c5 commit 7fb5593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/ci/github-actions/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7fb5593

Please sign in to comment.