mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 19:33:52 +08:00
Update action.yml
This commit is contained in:
parent
5a0bb26204
commit
1fcdaff272
@ -74,7 +74,7 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
if [[ ${{ startsWith(inputs.ref, 'refs/tags/') }} ]]; then
|
if [[ ${{ startsWith(inputs.ref, 'refs/tags/') }} ]]; then
|
||||||
export REF=${{ inputs.ref }}
|
export REF=${{ inputs.ref }}
|
||||||
TAG=$(echo "${REF/refs\/tags\//}" | sed 's/${{ inputs.strip_tag_prefix }}//')
|
TAG=$(echo "${REF/refs\/tags\//}" | sed "s/${{ inputs.strip_tag_prefix }}//")
|
||||||
echo "::set-output name=tag::$TAG"
|
echo "::set-output name=tag::$TAG"
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
Reference in New Issue
Block a user