@@ -13,17 +13,14 @@ jobs:
1313 name : Bump version in repository
1414 runs-on : ubuntu-latest
1515 needs : check-submodules
16- permissions :
17- contents : write
1816
1917 steps :
2018 - name : Checkout repository
2119 uses : actions/checkout@v4
2220 with :
2321 submodules : recursive
24- token : ${{ secrets.GITHUB_TOKEN }}
25- # Checkout the default branch, not the release tag
26- ref : ${{ github.event.repository.default_branch }}
22+ ssh-key : ${{ secrets.SSH_DEPLOY_KEY }}
23+ ref : main
2724
2825 - name : Install UV
2926 uses : astral-sh/setup-uv@v4
@@ -48,12 +45,10 @@ jobs:
4845 uv version ${{ steps.get_version.outputs.VERSION }}
4946
5047 - name : Commit version bump
51- run : |
52- git config --local user.email "action@github.com"
53- git config --local user.name "GitHub Action"
54- git add pyproject.toml
55- git commit -m "🔖 bump version to ${{ steps.get_version.outputs.VERSION }}"
56- git push origin ${{ github.event.repository.default_branch }}
48+ uses : stefanzweifel/git-auto-commit-action@v4
49+ with :
50+ file_pattern : pyproject.toml
51+ commit_message : " 🔖 bump version to ${{ steps.get_version.outputs.VERSION }}"
5752
5853 publish-to-pypi :
5954 name : Build and publish to PyPI
6560 uses : actions/checkout@v4
6661 with :
6762 submodules : recursive
68- # Fetch the latest commit (including the version bump)
69- ref : ${{ github.event.repository.default_branch }}
63+ ref : main
7064
7165 - name : Install UV
7266 uses : astral-sh/setup-uv@v4
0 commit comments