From ca085f4792e2abd93a9a640566e065ad28f8bc39 Mon Sep 17 00:00:00 2001 From: Dovid Levine Date: Mon, 2 Oct 2023 07:35:42 +0000 Subject: [PATCH] fix: only match exact version number --- release-latest-versions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release-latest-versions.sh b/release-latest-versions.sh index fd60428..678fa6e 100644 --- a/release-latest-versions.sh +++ b/release-latest-versions.sh @@ -126,7 +126,7 @@ for POSSIBLE_VERSION in ${POSSIBLE_VERSIONS}; do echo "Checking ${POSSIBLE_VERSION}" # Get the latest tag that starts with POSSIBLE_VERSION - MATCHED_TAG="$(git tag --list "${POSSIBLE_VERSION}*" --sort=-v:refname | head -n 1)" + MATCHED_TAG="$(git tag --list "${POSSIBLE_VERSION}^*" --sort=-v:refname | head -n 1)" # If we matched a tag, check if we should rerelease it if [ -n "${MATCHED_TAG}" ]; then