Skip to content

Commit b55920e

Browse files
authored
Merge pull request #305 from github/jm_force_tags
fix: for tag update, especially if it already exists
2 parents 372d825 + a0a96af commit b55920e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/major-version-updater.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ jobs:
2929
{ echo "tag=${tag}"; echo "version=${version}"; echo "major=${major}"; } >> "$GITHUB_OUTPUT"
3030
- name: force update major tag
3131
run: |
32-
git tag v${{ steps.version.outputs.major }} ${{ steps.version.outputs.tag }}
32+
git tag -f v${{ steps.version.outputs.major }} ${{ steps.version.outputs.tag }}
3333
git push -f origin v${{ steps.version.outputs.major }}

0 commit comments

Comments
 (0)