Skip to content

Commit

Permalink
Merge pull request #22 from thedadams/sdk-rewrite
Browse files Browse the repository at this point in the history
chore: rewrite SDK to have parity with other SDKs
  • Loading branch information
thedadams authored Jun 19, 2024
2 parents 15e4822 + d842d50 commit 97a47fa
Show file tree
Hide file tree
Showing 21 changed files with 1,522 additions and 532 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/dispatch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Update GPTScript Version
on:
repository_dispatch:
types: release

jobs:
update-gptscript-dep:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update GPTScript Version
run: |
TAG=${{ github.event.client_payload.tag }}
echo "${TAG#v}" >> $VERSION
sed -i 's/version = "[0-9.]*"/version = "'${VERSION}'"/' pyproject.toml
sed -i 's/version: "v[0-9.]*"/version: ""/' gptscript/install.py
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install deps
run: |
pip install -r requirements.txt
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Automated GPTScript Version Update
file_pattern: 'pyproject.toml gptscript/install.py'
tag-release:
needs: update-gptscript-dep
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ github.event.client_payload.tag }}
tag_prefix: ""
- 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 }}
Loading

0 comments on commit 97a47fa

Please sign in to comment.