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
520e5aadb3
commit
ff26f78e3b
@ -17,7 +17,7 @@ inputs:
|
||||
|
||||
outputs:
|
||||
is_default:
|
||||
value: ${{ steps.current_branch.outputs.is_default }}
|
||||
value: ${{ steps.default.outputs.is_default }}
|
||||
description: 'Returns "true" if the current branch is the default else "false".'
|
||||
current_branch:
|
||||
value: ${{ steps.current_branch.outputs.current_branch }}
|
||||
@ -53,7 +53,7 @@ runs:
|
||||
echo "::set-output name=current_branch::${{ steps.branch.outputs.ref_branch }}"
|
||||
fi
|
||||
shell: bash
|
||||
- id: is_default
|
||||
- id: default
|
||||
run: |
|
||||
if [[ "${{ steps.current_branch.outputs.current_branch }}" == "${{ steps.current_branch.outputs.base_ref_branch }}" ]]; then
|
||||
echo "::set-output name=is_default::true"
|
||||
|
Loading…
Reference in New Issue
Block a user