Merge pull request #12 from tj-actions/test-default-env

This commit is contained in:
Tonye Jack 2021-02-13 06:00:55 -05:00 committed by GitHub
commit 0260390a17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,8 +55,10 @@ runs:
shell: bash
- 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"
if [[ -z "${{ steps.branch.outputs.head_ref_branch }}" ]]; then
if [[ "${{ steps.current_branch.outputs.current_branch }}" == "${{ steps.current_branch.outputs.ref_branch }}" ]]; then
echo "::set-output name=is_default::true"
fi
else
echo "::set-output name=is_default::false"
fi