From 84025c78c20db7b0b4364b5f0f09002dbe56b464 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 17 Nov 2025 15:41:54 +0100 Subject: [PATCH] bin/make-snapshot.sh: Correctly identify next release --- bin/make-snapshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/make-snapshot.sh b/bin/make-snapshot.sh index 4c9bac3..8585238 100755 --- a/bin/make-snapshot.sh +++ b/bin/make-snapshot.sh @@ -10,7 +10,7 @@ if [ -z $BRANCH ]; then exit 1 fi -LATEST_TAG=$(git for-each-ref refs/tags --sort=-taggerdate --format='%(refname)' --count=1 | awk -F/ '{print $3}') +LATEST_TAG=$(git for-each-ref refs/tags --sort=-v:refname --format='%(refname)' --count=1 | awk -F/ '{print $3}') NEXT_VERSION=$(echo "${LATEST_TAG:1}" | awk -F. -v OFS=. '{$3=0}; {++$2}; {print}') if [[ -n $(git branch | grep $BRANCH) ]]; then