infra: allow first releases (#22236)

This commit is contained in:
Erick Friis
2024-05-28 09:39:40 -07:00
committed by William Fu-Hinthorn
parent 15d4e1ad76
commit bb34baaa47

View File

@@ -97,7 +97,7 @@ jobs:
run: |
REGEX="^$PKG_NAME==\\d+\\.\\d+\\.\\d+\$"
echo $REGEX
PREV_TAG=$(git tag --sort=-creatordate | grep -P $REGEX | head -1)
PREV_TAG=$(git tag --sort=-creatordate | {grep -P $REGEX || test $? = 1; } | head -1)
TAG="${PKG_NAME}==${VERSION}"
if [ "$TAG" == "$PREV_TAG" ]; then
echo "No new version to release"