Skip to content

Commit c59583e

Browse files
committed
Make version-bump commit include the version being bumped to
1 parent 28d8355 commit c59583e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ jobs:
2828
run: >-
2929
poetry version minor
3030
31+
- name: Get version
32+
id: get_version
33+
run: >-
34+
poetry version --short | sed 's/^/::set-output name=version::/'
35+
3136
- name: Commit updated version.
3237
id: commit_updated
3338
run: |
3439
git config --global user.name 'github-actions'
3540
git config --global user.email '[email protected]'
3641
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
3742
git add pyproject.toml
38-
git commit -m "bump version" && git push || echo "No changes to commit"
43+
git commit -m "bump version to ${{ steps.get_version.outputs.version }}" && git push || echo "No changes to commit"
3944
git log -n 1 --pretty=format:"%H" | tail -n 1 | awk '{print "::set-output name=sha::"$0}'
4045
41-
- name: Get version
42-
id: get_version
43-
run: >-
44-
poetry version --short | sed 's/^/::set-output name=version::/'
45-
4646
- name: Create GitHub release
4747
uses: actions/create-release@v1
4848
id: create_release

0 commit comments

Comments
 (0)