Skip to content

Commit a992ab1

Browse files
committed
Fix bug of tag_version_prefix is empty
`git tag 0.0.1` and `tag_version_prefix: ""` will trigger this bug. `${INPUT_TAG_VERSION_PREFIX:-v}` will return 'v' when `$INPUT_TAG_VERSION_PREFIX` is ""
1 parent b112e25 commit a992ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -o errexit -o pipefail -o nounset
44

5-
NEW_RELEASE=${GITHUB_REF##*/${INPUT_TAG_VERSION_PREFIX:-v}}
5+
NEW_RELEASE=${GITHUB_REF_NAME#${INPUT_TAG_VERSION_PREFIX:-v}}
66

77
export HOME=/home/builder
88

0 commit comments

Comments
 (0)