Skip to content

Commit

Permalink
infra: release note compute 2 (#27921)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Nov 5, 2024
1 parent bff2a8b commit b3c8135
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,16 @@ jobs:
PREV_TAG=$(git tag --sort=-creatordate | grep -P $REGEX || true | head -1)
fi
# 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
# if PREV_TAG is empty, let it be empty
if [ -z "$PREV_TAG" ]; then
echo "No previous tag found - first release"
else
# 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
Expand Down

0 comments on commit b3c8135

Please sign in to comment.