Update action.yml

This commit is contained in:
Tonye Jack 2021-02-12 16:33:03 -05:00 committed by GitHub
parent 520e5aadb3
commit ff26f78e3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"