mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-12-27 14:27:59 +08:00
fix: bug retrieving the current branch name on pull request review event
Closes: #234
This commit is contained in:
parent
d53a4f56f3
commit
580b4b17bc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user