Skip to content

The agent engineering platform.

infra: release note grep order of operations (#27922)

Erick Friisc3b75560dc13
diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml
index 6dee08c652..fd6a53fee8 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