Skip to content

Commit

Permalink
fix: dispatch should commit and tag in the same job
Browse files Browse the repository at this point in the history
Additionally, mark as prerelease when tagging an RC.

Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams committed Jun 25, 2024
1 parent ea4d82b commit 1c1c86c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/dispatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Update GPTScript Version
run: |
TAG=${{ github.event.client_payload.tag }}
echo "${TAG#v}" >> $VERSION
VERSION="${TAG#v}"
sed -i 's/version = "[0-9.]*"/version = "'${VERSION}'"/' pyproject.toml
sed -i 's/"version": "v[0-9.]*"/"version": "'${TAG}'"/' gptscript/install.py
sed -i 's/"version": "v[0-9.]*"/"version": "'${TAG}'"/' scripts/package
Expand All @@ -27,13 +27,6 @@ jobs:
with:
commit_message: Automated GPTScript Version Update
file_pattern: 'pyproject.toml gptscript/install.py scripts/package'
tag-release:
needs: update-gptscript-dep
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.BOT_GH_TOKEN }}
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
Expand All @@ -47,3 +40,4 @@ jobs:
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') }}

0 comments on commit 1c1c86c

Please sign in to comment.