Skip to content

Commit c18730a

Browse files
authored
ci: delete remote major tag (#151)
1 parent 01f6955 commit c18730a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/bump-version.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ jobs:
3636
3737
VERSION=$(cz version -p)
3838
PINNED_MAJOR=v${VERSION%%.*}
39-
git tag -d $PINNED_MAJOR || true # Delete previous major version tag
40-
git tag $PINNED_MAJOR HEAD
39+
git tag -d $PINNED_MAJOR || echo "Tag $PINNED_MAJOR does not exist locally."
40+
git push origin --delete $PINNED_MAJOR || echo "Tag $PINNED_MAJOR does not exist on remote."
41+
git tag $PINNED_MAJOR HEAD || echo "Could not add tag $PINNED_MAJOR."
4142
4243
git push origin HEAD:main
4344
git push origin --tags

0 commit comments

Comments
 (0)