mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-12-27 14:27:59 +08:00
Update 'current_branch' output to strip tag prefix
This commit is contained in:
parent
2840c25574
commit
5ced4fd6c2
@ -55,7 +55,7 @@ runs:
|
||||
fi
|
||||
else
|
||||
REF=${{ github.ref }}
|
||||
REF_BRANCH=${REF/refs\/tags\//}
|
||||
REF_BRANCH=${REF/refs\/tags\/${{ inputs.strip_tag_prefix }}/}
|
||||
echo "::set-output name=current_branch::$REF_BRANCH"
|
||||
fi
|
||||
shell: bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user