Skip to content

Commit

Permalink
fix: only match exact version number
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine committed Oct 2, 2023
1 parent d3aaccb commit ca085f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release-latest-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca085f4

Please sign in to comment.