From c59583e4bd2eec58f7455d648c0f5a982b20734f Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Wed, 21 Aug 2024 19:17:58 -0700 Subject: [PATCH] Make version-bump commit include the version being bumped to --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b2c489..d93fda2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,11 @@ jobs: run: >- poetry version minor + - name: Get version + id: get_version + run: >- + poetry version --short | sed 's/^/::set-output name=version::/' + - name: Commit updated version. id: commit_updated run: | @@ -35,14 +40,9 @@ jobs: git config --global user.email 'bot@noreply.github.com' git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} git add pyproject.toml - git commit -m "bump version" && git push || echo "No changes to commit" + git commit -m "bump version to ${{ steps.get_version.outputs.version }}" && git push || echo "No changes to commit" git log -n 1 --pretty=format:"%H" | tail -n 1 | awk '{print "::set-output name=sha::"$0}' - - name: Get version - id: get_version - run: >- - poetry version --short | sed 's/^/::set-output name=version::/' - - name: Create GitHub release uses: actions/create-release@v1 id: create_release