Skip to content

Commit

Permalink
fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
woodgear committed Sep 12, 2024
1 parent d2bf1a5 commit 8607c97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/run-like-github-actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8607c97

Please sign in to comment.