Skip to content

Commit

Permalink
use push action
Browse files Browse the repository at this point in the history
  • Loading branch information
waddafunk committed Nov 14, 2024
1 parent 4147cad commit 43655e6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ jobs:
git config --local user.name "github-actions[bot]"
git commit -a -m "Update toml version"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: Push changes and update tag
run: |
# Push changes to main/master branch
git push origin HEAD:main || git push origin HEAD:master
# Force update the tag to point to the new commit
git tag -fa ${GITHUB_REF#refs/tags/} -m "Update tag to include toml version change"
git push origin --force ${GITHUB_REF#refs/tags/}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 43655e6

Please sign in to comment.