From 15d2fe55ad97ff99bb7b7eb0309ba9cdf93c1279 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Thu, 16 Jan 2025 11:28:10 +0900 Subject: [PATCH] chore: updated worker deletion ref branch --- .github/workflows/worker-delete.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/worker-delete.yml b/.github/workflows/worker-delete.yml index a922895..3cf2edb 100644 --- a/.github/workflows/worker-delete.yml +++ b/.github/workflows/worker-delete.yml @@ -22,7 +22,7 @@ jobs: - name: Get Deleted Branch Name id: get_branch run: | - branch_name=$(echo '${{ github.event.ref }}' | sed 's#refs/heads/##' | sed 's#[^a-zA-Z0-9]#-#g') + branch_name=$(echo '${{ github.event.workflow_run.head_branch || github.ref }}' | sed 's#refs/heads/##' | sed 's#[^a-zA-Z0-9]#-#g') echo "branch_name=$branch_name" >> $GITHUB_ENV - name: Retrieve and Construct Full Worker Name id: construct_worker_name