mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 20:33:52 +08:00
Update action.yml
This commit is contained in:
parent
f41e4b666d
commit
384f41b675
@ -92,7 +92,7 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
# "Set the default branch name..."
|
# "Set the default branch name..."
|
||||||
if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then
|
if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then
|
||||||
if [[ "${{ steps.current_branch.outputs.current_branch }}" == "${{ github.event.repository.default_branch }}" && "${{ github.event.head.fork }}" != "true" ]]; then
|
if [[ "${{ steps.current_branch.outputs.current_branch }}" == "${{ github.event.repository.default_branch }}" && "${{ github.event.pull_request.head.fork }}" != "true" ]]; then
|
||||||
if [[ -z "$GITHUB_OUTPUT" ]]; then
|
if [[ -z "$GITHUB_OUTPUT" ]]; then
|
||||||
echo "::set-output name=is_default::true"
|
echo "::set-output name=is_default::true"
|
||||||
echo "::set-output name=default_branch::${{ github.event.repository.default_branch }}"
|
echo "::set-output name=default_branch::${{ github.event.repository.default_branch }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user