File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -34,21 +34,17 @@ jobs:
3434 echo version: $version_number
3535 echo "version=$version_number" >> $GITHUB_OUTPUT
3636
37- - name : Bump project version in pyproject.toml and add changes to current branch and tag
37+ - name : Bump project version in pyproject.toml and commit changes to current branch and tag
3838 run : |
3939 VERSION=${{ steps.retrieve-version.outputs.version }}
4040 uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version $VERSION
4141
4242 git config --local user.email "action@github.com"
4343 git config --local user.name "GitHub Action"
4444
45- git add pyproject.toml
46- git commit -m "Bump version to ${{ github.event.release.tag_name }}"
47-
48- - name : Commit changes
49- run : |
5045 git add pyproject.toml
5146 git commit -m "Bump package version to ${{ steps.retrieve-version.outputs.version }}."
47+
5248 git tag -f -a ${{ github.event.release.tag_name }} -m "Release ${{ steps.retrieve-version.outputs.version }}."
5349 git push origin HEAD:main
5450 git push origin -f ${{ github.event.release.tag_name }}
You can’t perform that action at this time.
0 commit comments