Skip to content

Commit ca00ce0

Browse files
authored
Also move tags to match version
1 parent d6cd820 commit ca00ce0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pypi.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,13 @@ jobs:
7474
echo "No changes to commit"
7575
fi
7676
77-
- name: Push commit to branch
77+
- name: move tag
78+
run: |
79+
git tag -f ${{ env.RELEASE_VERSION }} -m "$(git tag -l --format='%(contents)' ${{ env.RELEASE_VERSION }})"
80+
81+
- name: Push commit to branch & new tag
7882
# GITHUB_TOKEN is automatically provided
7983
run: |
8084
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
8185
git push origin HEAD:$BRANCH
86+
git push origin --force ${{ env.RELEASE_VERSION }}

0 commit comments

Comments
 (0)