1
0
mirror of https://github.com/pypa/gh-action-pypi-publish synced 2024-11-30 21:22:28 +08:00

Make Tag pushing atomic

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
This commit is contained in:
Sebastian Weigand 2020-11-06 15:39:23 +01:00 committed by GitHub
parent 54e3ca66c3
commit 5fbbe92f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,5 +47,6 @@ jobs:
--message='original tag: ${{ env.original_tag_name }}' --message='original tag: ${{ env.original_tag_name }}'
git tag --annotate '${{ env.minor_version }}' \ git tag --annotate '${{ env.minor_version }}' \
--message='original tag: ${{ env.original_tag_name }}' --message='original tag: ${{ env.original_tag_name }}'
git push origin '${{ env.major_version }}' --force-with-lease git push --force --atomic origin \
git push origin '${{ env.minor_version }}' --force-with-lease '${{ env.major_version }}' \
'${{ env.minor_version }}'