From aff661feb511f505a511b96dbf36a98b2d08f38c Mon Sep 17 00:00:00 2001 From: ThomasCardin Date: Wed, 13 Nov 2024 15:16:51 -0500 Subject: [PATCH] issue #160: fix --- .github/workflows/workflow-issue-status.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow-issue-status.yml b/.github/workflows/workflow-issue-status.yml index 2a8447ab..90d98712 100644 --- a/.github/workflows/workflow-issue-status.yml +++ b/.github/workflows/workflow-issue-status.yml @@ -32,7 +32,7 @@ jobs: if [ "${{ github.event_name }}" == "issues" ] && [ "${{ github.event.action }}" == "opened" ]; then ISSUE_NUMBER="${{ github.event.issue.number }}" elif [ "${{ github.event_name }}" == "pull_request" ]; then - ISSUE_NUMBER=$(echo "$BRANCH_NAME" | grep -oE '^[0-9]+') + ISSUE_NUMBER=$(echo "${{ github.event.pull_request.head.ref }}" | grep -oE '^[0-9]+') fi if [ -n "$ISSUE_NUMBER" ]; then