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
4d9f7b7bce
commit
41584fbfb4
@ -75,9 +75,9 @@ runs:
|
|||||||
if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then
|
if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then
|
||||||
if [[ ${{ github.event_name }} == *"pull_request"* ]]; then
|
if [[ ${{ github.event_name }} == *"pull_request"* ]]; then
|
||||||
if [[ -z "$GITHUB_OUTPUT" ]]; then
|
if [[ -z "$GITHUB_OUTPUT" ]]; then
|
||||||
echo "::set-output name=current_branch::${{ steps.branch.outputs.head_ref }}"
|
echo "::set-output name=current_branch::${{ steps.branch.outputs.head_ref_branch }}"
|
||||||
else
|
else
|
||||||
echo "current_branch=${{ steps.branch.outputs.head_ref }}" >> "$GITHUB_OUTPUT"
|
echo "current_branch=${{ steps.branch.outputs.head_ref_branch }}" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ -z "$GITHUB_OUTPUT" ]]; then
|
if [[ -z "$GITHUB_OUTPUT" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user