mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-09 15:37:05 +03:00
fix check-protobuf-stability (#18682)
Currently fails in the presence of release candidates.
This commit is contained in:
parent
b95140e9bb
commit
b978f97970
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user