Skip to content

Commit

Permalink
Update tagging to use --verify
Browse files Browse the repository at this point in the history
  • Loading branch information
mario4tier committed Dec 20, 2024
1 parent b09e70e commit 9c6bd02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-step-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
run: |
# Ensure latest commit is tag with '$TAG'
NEW_COMMIT=$(git rev-parse HEAD)
if git rev-parse "$TAG" >/dev/null 2>&1; then
EXISTING_COMMIT=$(git rev-parse "$TAG")
if git rev-parse --verify "$TAG" >/dev/null 2>&1; then
EXISTING_COMMIT=$(git rev-parse --verify "$TAG")
if [ "$NEW_COMMIT" != "$EXISTING_COMMIT" ]; then
echo "Deleting existing tag $TAG"
git tag -d "$TAG"
Expand Down

0 comments on commit 9c6bd02

Please sign in to comment.