Skip to content

Commit

Permalink
fix: commit and tag in one step on dispatch
Browse files Browse the repository at this point in the history
Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams committed Jun 25, 2024
1 parent 8ce9657 commit df457b2
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/dispatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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') }}

0 comments on commit df457b2

Please sign in to comment.