Skip to content

Commit

Permalink
fix: bug retrieving the current branch name on pull request review event
Browse files Browse the repository at this point in the history
Closes: #234
  • Loading branch information
jackton1 authored May 15, 2023
1 parent d53a4f5 commit 580b4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 580b4b1

Please sign in to comment.