-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from thedadams/sdk-rewrite
chore: rewrite SDK to have parity with other SDKs
- Loading branch information
Showing
21 changed files
with
1,522 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
Oops, something went wrong.