Skip to content

Commit

Permalink
chore(ci): separate concurrency groups for builds
Browse files Browse the repository at this point in the history
The previous configuration for concurrency group used `head_ref`
incorrectly resulting in separate runs on master being cancelled.

This solution was taken from: https://stackoverflow.com/a/75403978/1573761

Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Oct 11, 2023
1 parent 297feef commit 21fdec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true

env:
Expand Down

0 comments on commit 21fdec0

Please sign in to comment.