Skip to content

Commit 1c1c86c

Browse files
committed
fix: dispatch should commit and tag in the same job
Additionally, mark as prerelease when tagging an RC. Signed-off-by: Donnie Adams <[email protected]>
1 parent ea4d82b commit 1c1c86c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/dispatch.yaml

+2-8
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Update GPTScript Version
1414
run: |
1515
TAG=${{ github.event.client_payload.tag }}
16-
echo "${TAG#v}" >> $VERSION
16+
VERSION="${TAG#v}"
1717
sed -i 's/version = "[0-9.]*"/version = "'${VERSION}'"/' pyproject.toml
1818
sed -i 's/"version": "v[0-9.]*"/"version": "'${TAG}'"/' gptscript/install.py
1919
sed -i 's/"version": "v[0-9.]*"/"version": "'${TAG}'"/' scripts/package
@@ -27,13 +27,6 @@ jobs:
2727
with:
2828
commit_message: Automated GPTScript Version Update
2929
file_pattern: 'pyproject.toml gptscript/install.py scripts/package'
30-
tag-release:
31-
needs: update-gptscript-dep
32-
runs-on: ubuntu-latest
33-
steps:
34-
- uses: actions/checkout@v4
35-
with:
36-
token: ${{ secrets.BOT_GH_TOKEN }}
3730
- name: Bump version and push tag
3831
id: tag_version
3932
uses: mathieudutour/[email protected]
@@ -47,3 +40,4 @@ jobs:
4740
tag: ${{ steps.tag_version.outputs.new_tag }}
4841
name: Release ${{ steps.tag_version.outputs.new_tag }}
4942
body: ${{ steps.tag_version.outputs.changelog }}
43+
prerelease: ${{ contains(github.ref_name, '-rc') }}

0 commit comments

Comments
 (0)