bin/make-snapshot.sh: Correctly identify next release

This commit is contained in:
Johannes Meyer 2025-11-17 15:41:54 +01:00
parent 2b5bac6322
commit 84025c78c2

View File

@ -10,7 +10,7 @@ if [ -z $BRANCH ]; then
exit 1 exit 1
fi 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}') NEXT_VERSION=$(echo "${LATEST_TAG:1}" | awk -F. -v OFS=. '{$3=0}; {++$2}; {print}')
if [[ -n $(git branch | grep $BRANCH) ]]; then if [[ -n $(git branch | grep $BRANCH) ]]; then