infra: release note compute 2 (#27921)

This commit is contained in:
Erick Friis 2024-11-05 12:04:41 -08:00 committed by GitHub
parent bff2a8b772
commit b3c81356ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,11 +106,16 @@ jobs:
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 fi
# confirm prev-tag actually exists in git repo with git tag # if PREV_TAG is empty, let it be empty
GIT_TAG_RESULT=$(git tag -l "$PREV_TAG") if [ -z "$PREV_TAG" ]; then
if [ -z "$GIT_TAG_RESULT" ]; then echo "No previous tag found - first release"
echo "Previous tag $PREV_TAG not found in git repo" else
exit 1 # confirm prev-tag actually exists in git repo with git tag
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
fi fi