We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23ec39c commit f71673bCopy full SHA for f71673b
.github/workflows/release.yml
@@ -109,13 +109,13 @@ jobs:
109
if ! git diff --cached --quiet; then
110
git commit -m "chore: bump version to $VERSION"
111
fi
112
- if git rev-parse "$VERSION" >/dev/null 2>&1; then
113
- echo "Tag $VERSION already exists, skipping"
+ if git ls-remote --tags origin "$VERSION" | grep -q "$VERSION"; then
+ echo "Tag $VERSION already exists on remote, skipping"
114
else
115
git tag "$VERSION"
116
git push origin "$VERSION"
117
118
- git push origin "$BRANCH"
+ git push origin "$BRANCH" --force-with-lease
119
120
- name: Create PR to merge version bump back to main
121
if: ${{ !inputs.dry_run }}
0 commit comments