Skip to content

Commit 34d4736

Browse files
committed
Allow release script to skip commit if version is already bumped
1 parent faff02e commit 34d4736

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if [ "$IS_RELEASE" = true ]; then
6767

6868
# Commit version bump
6969
git add internal/version/version.go
70-
git commit -m "Bump version to $VERSION"
70+
git commit -m "Bump version to $VERSION" || echo "Version already set in code, skipping commit."
7171
else
7272
# Read current version from code for standard build
7373
VERSION="$(grep -E 'var Version =' internal/version/version.go \

0 commit comments

Comments
 (0)