From 580b4b17bc57c4a8b2cab9889f93f629a1d419e9 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 15 May 2023 13:36:15 -0600 Subject: [PATCH] fix: bug retrieving the current branch name on pull request review event Closes: #234 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a6e44e2..dad8737 100644 --- a/action.yml +++ b/action.yml @@ -73,7 +73,7 @@ runs: run: | # "Set the current branch name..." if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then - if [[ ${{ github.event_name }} == 'pull_request' || ${{ github.event_name }} == 'pull_request_target' ]]; then + if [[ ${{ github.event_name }} == *"pull_request"* ]]; then if [[ -z "$GITHUB_OUTPUT" ]]; then echo "::set-output name=current_branch::${{ steps.branch.outputs.head_ref_branch }}" else