From 351a29fcfbd7fa1cbd8ccfce6b12e493bb5243b5 Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Fri, 2 Aug 2024 18:44:25 -0400 Subject: [PATCH] ci: handle initial library version in tags (#1208) --- .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 50732be71..31ca672f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -104,7 +104,7 @@ jobs: REGEX="^$SHORT_PKG_NAME==\\d+\\.\\d+\\.\\d+((a|b|rc)\\d+)?\$" fi echo $REGEX - PREV_TAG=$(git tag --sort=-creatordate | grep -P $REGEX | head -1) + PREV_TAG=$(git tag --sort=-creatordate | grep -P $REGEX | head -1 || echo "") echo $PREV_TAG if [ "$TAG" == "$PREV_TAG" ]; then echo "No new version to release"