From 7a33b90e9d9c675392d8110be3486de076694549 Mon Sep 17 00:00:00 2001 From: Nikolai Zujev <824109+jaymecd@users.noreply.github.com> Date: Tue, 30 Apr 2024 17:59:33 +0200 Subject: [PATCH] fix(actions) - expose correct variable name for branch name --- .../pull-request/add-label-based-on-branch-name/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/github/pull-request/add-label-based-on-branch-name/action.yaml b/actions/github/pull-request/add-label-based-on-branch-name/action.yaml index ea2346c..e753ad1 100644 --- a/actions/github/pull-request/add-label-based-on-branch-name/action.yaml +++ b/actions/github/pull-request/add-label-based-on-branch-name/action.yaml @@ -35,7 +35,7 @@ runs: if (context.eventName == 'workflow_run') { core.exportVariable("PULL_REQUEST_NUMBER", context.payload.workflow_run.pull_requests[0].number); - core.exportVariable("PULL_REQUEST_NUMBER", context.payload.workflow_run.pull_requests[0].head.ref); + core.exportVariable("PULL_REQUEST_BRANCH_NAME", context.payload.workflow_run.pull_requests[0].head.ref); return; }