fix(publish): force push tags in republish mode
This commit is contained in:
parent
8b820c5374
commit
ba756d7533
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -162,7 +162,7 @@ jobs:
|
|||||||
git add package.json assets/oh-my-opencode.schema.json packages/*/package.json || true
|
git add package.json assets/oh-my-opencode.schema.json packages/*/package.json || true
|
||||||
git diff --cached --quiet || git commit -m "release: v${{ steps.version.outputs.version }}"
|
git diff --cached --quiet || git commit -m "release: v${{ steps.version.outputs.version }}"
|
||||||
git tag -f "v${{ steps.version.outputs.version }}"
|
git tag -f "v${{ steps.version.outputs.version }}"
|
||||||
git push origin --tags
|
git push origin --tags --force
|
||||||
git push origin HEAD || echo "Branch push failed (non-critical)"
|
git push origin HEAD || echo "Branch push failed (non-critical)"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user