mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 06:17:25 +00:00
fix(ci): use github.event.ref in delete-branch concurrency group
On `delete` events the workflow runs from the default-branch context, so `github.ref_name` evaluated to "main" and the concurrency group collided with entry-push-latest.yml's main group — cancelling the merge-commit CI: Push run on main. `github.event.ref` carries the actually deleted branch name, so the group matches the intended push-CI group. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
2b58a2c480
commit
3466be99df
1 file changed
+5
-1
@@ -5,8 +5,12 @@ on:
|
||||
|
||||
# Enters the same concurrency group as entry-push-latest.yml for the deleted
|
||||
# branch, which cancels that run and all its child workflow_call runs.
|
||||
# NOTE: on `delete` events, `github.ref_name` resolves to the default branch
|
||||
# (the workflow runs from the default branch context), not the deleted ref.
|
||||
# Use `github.event.ref` to get the actually deleted branch name — otherwise
|
||||
# this group would collide with the push-to-main CI and cancel it.
|
||||
concurrency:
|
||||
group: global-ci-${{ github.repository }}-${{ github.ref_name }}
|
||||
group: global-ci-${{ github.repository }}-${{ github.event.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
|
||||
Reference in new issue
Block a user