diff --git a/.github/workflows/delete-branch.yml b/.github/workflows/delete-branch.yml index 4cc5e2e4a8..d8afff01ee 100644 --- a/.github/workflows/delete-branch.yml +++ b/.github/workflows/delete-branch.yml @@ -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: