[MM-63849] Account for minor versions >= 10 (#3411)

This commit is contained in:
Devin Binnie
2025-04-30 09:05:57 -04:00
committed by GitHub
parent 4848b9768c
commit 726ccb92dd

View File

@@ -4,7 +4,7 @@ set -eu
VERSION="$1" # such as 5.3.0-rc.1, 5.0.0
TEMP_VERSION_FILE="$(mktemp -t temp_version_file.XXXX)"
git for-each-ref --sort=creatordate --format '%(refname)' refs/tags | grep "v[0-9]\.[0-9]\.[0-9]" | grep -v mas | grep -v "v$VERSION" | sed "s/refs\/tags\/v//" > $TEMP_VERSION_FILE
git for-each-ref --sort=creatordate --format '%(refname)' refs/tags | grep "v[0-9]\+\.[0-9]\+\.[0-9]\+" | grep -v mas | grep -v "v$VERSION" | sed "s/refs\/tags\/v//" > $TEMP_VERSION_FILE
LAST_VERSION="$(cat $TEMP_VERSION_FILE | tail -1)"
TEMP_CHANGES_FILE="$(mktemp -t temp_changes_file.XXXX)"