Skip to content

Commit 1d685d4

Browse files
committed
build: updated release script to handle release fixes
Signed-off-by: Jonas Kalderstam <jonas@cowboyprogrammer.org>
1 parent 2345738 commit 1d685d4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

release.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ current_default="$(git describe --tags --abbrev=0 "${TARGET}")"
77
echo >&2 -n "Current version [${current_default}]"
88

99
NEXT_VERSION="$(git cliff --bumped-version)"
10+
if git tag --list | grep -qx "${NEXT_VERSION}"; then
11+
SUFFIX=1
12+
while git tag --list | grep -qx "${NEXT_VERSION}-${SUFFIX}"; do
13+
SUFFIX=$(( SUFFIX + 1 ))
14+
done
15+
NEXT_VERSION="${NEXT_VERSION}-${SUFFIX}"
16+
fi
1017
echo >&2 -n "Next version [${NEXT_VERSION}]. Press any key to continue..."
1118
read -r
1219

0 commit comments

Comments
 (0)