mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-12-27 14:27:59 +08:00
Update action.yml
This commit is contained in:
parent
7cd7680665
commit
d6cfbc028a
@ -40,7 +40,7 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
# "Set branch names..."
|
# "Set branch names..."
|
||||||
if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then
|
if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then
|
||||||
BASE_REF=$(printf "%q" "${{ github.base_ref }}")
|
BASE_REF=$(printf "%q" "${{ github.event.pull_request.base.ref || github.base_ref }}")
|
||||||
HEAD_REF=$(printf "%q" "${{ github.event.pull_request.head.ref || github.head_ref }}")
|
HEAD_REF=$(printf "%q" "${{ github.event.pull_request.head.ref || github.head_ref }}")
|
||||||
REF=$(printf "%q" "${{ github.ref }}")
|
REF=$(printf "%q" "${{ github.ref }}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user