Fix: fetch new tag before updating major version tag
gh release create creates the tag on the remote, so we need to fetch it before we can reference it locally for the major version tag update. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -68,5 +68,6 @@ jobs:
|
||||
|
||||
- name: Update major version tag
|
||||
run: |
|
||||
git fetch origin tag "${{ steps.version.outputs.new }}"
|
||||
git tag -f "${{ steps.version.outputs.major }}" "${{ steps.version.outputs.new }}"
|
||||
git push -f origin "${{ steps.version.outputs.major }}"
|
||||
|
||||
Reference in New Issue
Block a user