Update publish.yml to handle existing tag (#13463)
This commit is contained in:
parent
f77349547e
commit
199083d5f6
1 changed files with 1 additions and 1 deletions
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
|
|
@ -60,7 +60,7 @@ jobs:
|
||||||
- name: Publish new tag
|
- name: Publish new tag
|
||||||
if: (github.event_name == 'push' || github.event.inputs.pypi == 'true') && steps.check_pypi.outputs.increment == 'True'
|
if: (github.event_name == 'push' || github.event.inputs.pypi == 'true') && steps.check_pypi.outputs.increment == 'True'
|
||||||
run: |
|
run: |
|
||||||
git tag -a "v${{ steps.check_pypi.outputs.version }}" -m "$(git log -1 --pretty=%B)" # i.e. "v0.1.2 commit message"
|
git tag -a "v${{ steps.check_pypi.outputs.version }}" -m "$(git log -1 --pretty=%B)" || true # i.e. "v0.1.2 commit message"
|
||||||
git push origin "v${{ steps.check_pypi.outputs.version }}" || true
|
git push origin "v${{ steps.check_pypi.outputs.version }}" || true
|
||||||
- name: Publish new release
|
- name: Publish new release
|
||||||
if: (github.event_name == 'push' || github.event.inputs.pypi == 'true') && steps.check_pypi.outputs.increment == 'True'
|
if: (github.event_name == 'push' || github.event.inputs.pypi == 'true') && steps.check_pypi.outputs.increment == 'True'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue