Skip to content

Commit

Permalink
Also update openapi_spec.json
Browse files Browse the repository at this point in the history
  • Loading branch information
keenangraham committed Aug 21, 2024
1 parent 1f8aebe commit ede4f52
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/clientbuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@ jobs:
git config --global user.email "keenangraham@stanford.edu"
git config --global user.name "Keenan Graham"
- name: Generate OpenAPI specification
run: |
pip install -r requirements.txt
python generate.py
- name: Commit OpenAPI specification
run: |
OPENAPI_VERSION=$(jq -r '.info.version' ./openapi_spec.json)
git checkout -b update-$OPENAPI_VERSION
git add openapi_spec.json
git commit -m "Update version $OPENAPI_VERSION"
git push origin update-$OPENAPI_VERSION
git checkout main
git pull
git merge update-$OPENAPI_VERSION --ff-only
git push origin main
gh release create v$OPENAPI_VERSION -t "v$OPENAPI_VERSION" -n "Release version $OPENAPI_VERSION"
- name: Install Node.js and npm
uses: actions/setup-node@v4
with:
Expand Down

0 comments on commit ede4f52

Please sign in to comment.