Update action.yml

This commit is contained in:
Tonye Jack 2020-12-29 09:11:26 -05:00 committed by GitHub
parent f3c06da963
commit 1979d5700a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,8 +40,9 @@ runs:
export REF=${{ inputs.ref }} export REF=${{ inputs.ref }}
echo "::set-output name=base_ref_branch::${BASE_REF/refs\/heads\//}" echo "::set-output name=base_ref_branch::${BASE_REF/refs\/heads\//}"
echo "::set-output name=head_ref_branch::${HEAD_REF/refs\/heads\//}" echo "::set-output name=head_ref_branch::${HEAD_REF/refs\/heads\//}"
// For pull requests
REF_BRANCH=${REF/refs\/pull\//} REF_BRANCH=${REF/refs\/pull\//}
echo "::set-output name=ref_branch::${$REF_BRANCH/refs\/heads\//}" echo "::set-output name=ref_branch::${REF_BRANCH/refs\/heads\//}"
shell: bash shell: bash
branding: branding:
icon: git-branch icon: git-branch