From 3466be99df2fcaecafa6e7d5439052012ced2d91 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 24 Apr 2026 23:18:21 +0200 Subject: [PATCH] fix(ci): use github.event.ref in delete-branch concurrency group MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/delete-branch.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: