Skip to content

Commit

Permalink
BUG: GHA: Cancel-in-progress event if not the same head SHA
Browse files Browse the repository at this point in the history
Grouping based on github.event.pull_request.head.sha, i.e. "the commit
ID for the last commit to the head branch of the pull request" only
cancels commits with the same SHA. With this PR, on-going workflows of
the same PR would be cancelled.
  • Loading branch information
Simon Rit authored and hjmjohnson committed Dec 11, 2024
1 parent ddc8c11 commit e27f2cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
- 'Utilities/Maintenance/**'

concurrency:
group: '${{ github.workflow }}@${{ github.event.pull_request.head.sha || github.head_ref || github.ref }}'
group: '${{ github.workflow }}@${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pixi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
- 'Utilities/Maintenance/**'

concurrency:
group: '${{ github.workflow }}@${{ github.event.pull_request.head.sha || github.head_ref || github.ref }}'
group: '${{ github.workflow }}@${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
Expand Down

0 comments on commit e27f2cf

Please sign in to comment.