File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,27 @@ jobs:
2222 with :
2323 python-version : " 3.10"
2424
25+ - name : current_version
26+ run : echo "current_version=$(grep 'version = ' pyproject.toml | cut -d '=' -f2 | tr -d ' "')" >> $GITHUB_ENV
27+
2528 - name : Install bump2version
2629 run : pip install bump2version
2730
2831 - name : Bump version and commit changes
2932 run : |
33+ git config --global user.name 'github-actions[bot]'
34+ git config --global user.email 'github-actions[bot]@users.noreply.github.com'
3035 bump2version patch
3136 env :
3237 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3338
39+ - name : new_version
40+ run : echo "new_version=$(grep 'version = ' pyproject.toml | cut -d '=' -f2 | tr -d ' "')" >> $GITHUB_ENV
41+
3442 - name : Push changes
3543 run : |
36- git config user.name 'github-actions[bot]'
37- git config user.email 'github-actions[bot]@users.noreply.github.com'
44+ git config --global user.name 'github-actions[bot]'
45+ git config --global user.email 'github-actions[bot]@users.noreply.github.com'
3846 git push
3947 git push --tags
4048 env :
4351 build :
4452 name : Build distribution 📦
4553 runs-on : ubuntu-latest
54+ # Only run this job when the `bump_version` job is successful
55+ needs :
56+ - bump_version
4657
4758 steps :
4859 - uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments