diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 6dee08c652d1a..fd6a53fee85cb 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -103,7 +103,7 @@ jobs: if [ -z "$PREV_TAG" ]; then REGEX="^$PKG_NAME==\\d+\\.\\d+\\.\\d+\$" echo $REGEX - PREV_TAG=$(git tag --sort=-creatordate | grep -P $REGEX || true | head -1) + PREV_TAG=$(git tag --sort=-creatordate | (grep -P $REGEX || true) | head -1) fi # if PREV_TAG is empty, let it be empty