Skip to content

Commit

Permalink
exit early on existing tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeskydev committed Jan 7, 2025
1 parent ebd14ee commit 2ddfb3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
echo "TAG=$TAG" >> $GITHUB_ENV
if git rev-parse $TAG >/dev/null 2>&1; then
echo "::error::Tag already exists: $TAG"
exit 1
else
echo "TAG_EXISTS=false" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 2ddfb3f

Please sign in to comment.