Skip to content

Commit b9ce989

Browse files
committed
ci: update release script to recognize -rc version suffix
1 parent 51635b9 commit b9ce989

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/prepare_release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if git rev-parse "$VERSION" >/dev/null 2>&1; then
2323
fi
2424

2525
next_version=""
26-
if [[ "$VERSION" =~ "alpha" ]] || [[ "$VERSION" =~ "beta" ]]|| [[ "$VERSION" =~ "M" ]]; then
27-
next_version=$(echo "$VERSION" | sed 's/-.*//')
26+
if [[ "$VERSION" =~ -(alpha|beta|M|rc)[0-9]*$ ]]; then
27+
next_version="${VERSION%%-*}"
2828
fi
2929

3030
mvn versions:set -DnewVersion=$VERSION versions:commit

0 commit comments

Comments
 (0)