Skip to content

Commit

Permalink
ci: use head_ref for concurrency group
Browse files Browse the repository at this point in the history
Use the head_ref value for the concurrency group on `ci-privileged` rather than the ref, so that the main ref is not used and cancelling across pull requests and the main branch

Backport angular/angular#51784 to the CLI.

(cherry picked from commit e6e6d0c)
  • Loading branch information
alan-agius4 committed Sep 14, 2023
1 parent d8d116b commit 7801185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
types: [opened, synchronize, reopened]

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

permissions: {}
Expand Down

0 comments on commit 7801185

Please sign in to comment.