File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,16 +26,16 @@ jobs:
2626 run : uv python install 3.11
2727
2828 - name : Bump version
29- run : uv version --bump ${{ inputs.bump }}
29+ id : bump
30+ run : |
31+ uv version --bump ${{ inputs.bump }}
32+ echo "version=$(uv version --short)" >> $GITHUB_OUTPUT
3033
3134 - name : Commit version bump
32- run : |
33- VERSION=$(uv version --short)
34- git config user.name "github-actions[bot]"
35- git config user.email "github-actions[bot]@users.noreply.github.com"
36- git add pyproject.toml
37- git commit -m "Bump version to $VERSION [skip ci]"
38- git push
35+ uses : stefanzweifel/git-auto-commit-action@v5
36+ with :
37+ commit_message : " Bump version to ${{ steps.bump.outputs.version }} [skip ci]"
38+ file_pattern : pyproject.toml
3939
4040 - name : Install dependencies
4141 run : |
5151
5252 - name : Create release
5353 run : |
54- VERSION=$(uv version --short)
54+ VERSION="${{ steps.bump.outputs. version }}"
5555 if echo "$VERSION" | grep -qE '(a|b|rc)[0-9]+'; then
5656 gh release create "v$VERSION" dist/* --generate-notes --prerelease
5757 else
You can’t perform that action at this time.
0 commit comments