diff --git a/scripts/run-like-github-actions.sh b/scripts/run-like-github-actions.sh index a0bb956c..5970493e 100755 --- a/scripts/run-like-github-actions.sh +++ b/scripts/run-like-github-actions.sh @@ -145,8 +145,7 @@ function alb-gh-get-gobuild-ver() ( ) function alb-github-gen-version() { - local branch=$(echo "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" | sed 's|/|-|g') - if [[ "$branch" == "master" ]]; then + if [[ "$RELEASE_TYPE" == "release" ]]; then echo v$CURRENT_VERSION return fi