Skip to content

Commit 51e999a

Browse files
committed
Clarify step name for version bumping in release workflow
1 parent 99c6fd8 commit 51e999a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)