Skip to content

Commit bc813a8

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 bc813a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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#refs/tags/}
6+
NEW_RELEASE=${NEW_RELEASE#${INPUT_TAG_VERSION_PREFIX:-v}}
67

78
export HOME=/home/builder
89

0 commit comments

Comments
 (0)