Skip to content

Commit 5038d6c

Browse files
committed
fix: commit and tag in one step on dispatch
Signed-off-by: Donnie Adams <[email protected]>
1 parent 3ff469e commit 5038d6c

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/dispatch.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,11 @@ jobs:
2525
with:
2626
commit_message: Automated GPTScript Version Update
2727
file_pattern: 'package*.json scripts/install-binary.js'
28-
- name: Bump version and push tag
29-
id: tag_version
30-
uses: mathieudutour/[email protected]
31-
with:
32-
github_token: ${{ secrets.BOT_GH_TOKEN }}
33-
custom_tag: ${{ github.event.client_payload.tag }}
34-
tag_prefix: ""
28+
tagging_message: ${{ github.event.client_payload.tag }}
3529
- name: Create a GitHub release
3630
uses: ncipollo/release-action@v1
3731
with:
38-
tag: ${{ steps.tag_version.outputs.new_tag }}
39-
name: Release ${{ steps.tag_version.outputs.new_tag }}
40-
body: ${{ steps.tag_version.outputs.changelog }}
41-
prerelease: ${{ contains(github.ref_name, '-rc') }}
32+
tag: ${{ github.event.client_payload.tag }}
33+
name: Release ${{ github.event.client_payload.tag }}
34+
generateReleaseNotes: true
35+
prerelease: ${{ contains(github.event.client_payload.tag, '-rc') }}

0 commit comments

Comments
 (0)