Skip to content

Commit bfa9983

Browse files
committed
Use git-auto-commit-action for signed commits
1 parent c71c6b6 commit bfa9983

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/release.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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: |
@@ -51,7 +51,7 @@ jobs:
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

0 commit comments

Comments
 (0)