From a43cac0778bdfaff15603a98956fca6e2dcfa627 Mon Sep 17 00:00:00 2001 From: Giuseppe Ambrosio Date: Fri, 10 Jan 2025 14:10:32 +0100 Subject: [PATCH] fix: update release workflow to commit changes and remove tagging step --- .github/workflows/release.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44c9ee8..9fa1d4f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,18 +28,20 @@ jobs: # Step 3: Fare commit della modifica - name: Commit updated pyproject.toml + id: commit_step uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "[bot]: update version to ${{ steps.get_next_version.outputs.new_version }}" file_pattern: pyproject.toml - - name: Tag version - id: tag_version - uses: mathieudutour/github-tag-action@v6.2 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - dry_run: false - custom_tag: ${{ steps.get_next_version.outputs.new_tag }} - tag_prefix: "" + tagging_message: ${{ steps.get_next_version.outputs.new_tag }} + # - name: Tag version + # id: tag_version + # uses: mathieudutour/github-tag-action@v6.2 + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # dry_run: false + # custom_tag: ${{ steps.get_next_version.outputs.new_tag }} + # tag_prefix: "" - name: Create a GitHub release uses: ncipollo/release-action@v1 with: @@ -47,6 +49,7 @@ jobs: name: Release ${{ steps.get_next_version.outputs.new_tag }} body: ${{ steps.get_next_version.outputs.changelog }} generateReleaseNotes: true + commit: ${{ steps.commit_step.outputs.commit_sha }} mkdocs: runs-on: ubuntu-22.04