From b978f979705da9a2cef4f148ff81c26a19ecc8b6 Mon Sep 17 00:00:00 2001 From: Gary Verhaegen Date: Fri, 8 Mar 2024 18:22:09 +0100 Subject: [PATCH] fix check-protobuf-stability (#18682) Currently fails in the presence of release candidates. --- ci/check-protobuf-stability.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/check-protobuf-stability.sh b/ci/check-protobuf-stability.sh index 3625cd66ae..e4525e6130 100755 --- a/ci/check-protobuf-stability.sh +++ b/ci/check-protobuf-stability.sh @@ -74,7 +74,7 @@ USAGE readonly BRANCH_SUFFIX="${TARGET#release/}" readonly MINOR_VERSION="${BRANCH_SUFFIX%.x}" readonly NEXT_MINOR_VERSION=$(semver bump minor "$MINOR_VERSION.0") - readonly STABLE_TAGS=($(git tag | grep "v.*" | grep -v "snapshot" | sort -V)) + readonly STABLE_TAGS=($(git tag | grep -P '^v\d+\.\d+\.\d+$' | sort -V)) LATEST_STABLE_TAG="$( for TAG in "${STABLE_TAGS[@]}"; do if [[ $(semver compare "${TAG#v}" "$NEXT_MINOR_VERSION") == "-1" ]]; then