File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,13 @@ jobs:
3939 - name : new_version
4040 run : echo "new_version=$(grep 'version = ' pyproject.toml | cut -d '=' -f2 | tr -d ' "')" >> $GITHUB_ENV
4141
42- - name : Push changes
42+ - name : Commit and Push Changes
4343 run : |
44- git config --global user.name 'github-actions[bot]'
45- git config --global user.email 'github-actions[bot]@users.noreply.github.com'
46- git push
47- git push --tags
48- env :
49- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ git config user.email "github-actions[bot]@users.noreply.github.com"
45+ git config user.name "github-actions[bot]"
46+ git commit -am "Bump version [skip ci]" || echo "No changes to commit"
47+ git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
48+ git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git --tags
5049
5150 build :
5251 name : Build distribution 📦
You can’t perform that action at this time.
0 commit comments