From df457b2d96c5bafc6ff41230f771d7e23fcb8564 Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Tue, 25 Jun 2024 18:18:35 -0400 Subject: [PATCH] fix: commit and tag in one step on dispatch Signed-off-by: Donnie Adams --- .github/workflows/dispatch.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/dispatch.yaml b/.github/workflows/dispatch.yaml index 49e38f9..54c69db 100644 --- a/.github/workflows/dispatch.yaml +++ b/.github/workflows/dispatch.yaml @@ -27,17 +27,11 @@ jobs: with: commit_message: Automated GPTScript Version Update file_pattern: 'pyproject.toml gptscript/install.py scripts/package' - - name: Bump version and push tag - id: tag_version - uses: mathieudutour/github-tag-action@v6.2 - with: - github_token: ${{ secrets.BOT_GH_TOKEN }} - custom_tag: ${{ github.event.client_payload.tag }} - tag_prefix: "" + tagging_message: ${{ github.event.client_payload.tag }} - name: Create a GitHub release uses: ncipollo/release-action@v1 with: - tag: ${{ steps.tag_version.outputs.new_tag }} - name: Release ${{ steps.tag_version.outputs.new_tag }} - body: ${{ steps.tag_version.outputs.changelog }} - prerelease: ${{ contains(github.ref_name, '-rc') }} + tag: ${{ github.event.client_payload.tag }} + name: Release ${{ github.event.client_payload.tag }} + generateReleaseNotes: true + prerelease: ${{ contains(github.event.client_payload.tag, '-rc') }}