From 26c6e4a5ef634962888f37d3f7fb978d3b082275 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Tue, 28 May 2024 09:39:40 -0700 Subject: [PATCH] infra: allow first releases (#22236) --- .github/workflows/_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index d416f304ef..c79fcd4b5b 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -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"