From 75f80c2910951d3823918a5950d7aa10e5392c91 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Mon, 4 Nov 2024 12:42:22 -0800 Subject: [PATCH] infra: fix prev tag condition (#27891) --- .github/workflows/_release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 9c348b246f5d0..a410217dad6f6 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -107,7 +107,8 @@ jobs: fi # confirm prev-tag actually exists in git repo with git tag - if [ -z git tag -l "$PREV_TAG" ]; then + GIT_TAG_RESULT=$(git tag -l "$PREV_TAG") + if [ -z "$GIT_TAG_RESULT" ]; then echo "Previous tag $PREV_TAG not found in git repo" exit 1 fi