We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f6955 commit c18730aCopy full SHA for c18730a
.github/workflows/bump-version.yml
@@ -36,8 +36,9 @@ jobs:
36
37
VERSION=$(cz version -p)
38
PINNED_MAJOR=v${VERSION%%.*}
39
- git tag -d $PINNED_MAJOR || true # Delete previous major version tag
40
- git tag $PINNED_MAJOR HEAD
+ git tag -d $PINNED_MAJOR || echo "Tag $PINNED_MAJOR does not exist locally."
+ 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."
42
43
git push origin HEAD:main
44
git push origin --tags
0 commit comments