Skip to content

Generate Clients

Generate Clients #8

name: Generate Clients
on: workflow_dispatch
jobs:
generate-clients:
runs-on: ubuntu-latest
name: Generate All Clients
steps:
- uses: actions/checkout@master
- name: Cleanup old client
run: rm -rf typescript-fetch-client/
- name: Generate new Go Client
uses: openapi-generators/openapitools-generator-action@v1
with:
generator: go
openapi-url: https://uplimit.com/api/organization/v1/schema.yaml
- name: Generate new Python Pydantic Client
uses: openapi-generators/openapitools-generator-action@v1
with:
generator: python-pydantic-v1
openapi-url: https://uplimit.com/api/organization/v1/schema.yaml
- name: Generate new Typescript Node Client
uses: openapi-generators/openapitools-generator-action@v1
with:
generator: typescript-node
openapi-url: https://uplimit.com/api/organization/v1/schema.yaml
- name: Commit new client
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'Uplimit Engineering'
git config --global user.email 'hello@uplimit.com'
git checkout -b generate-clients
git add .
git commit -am "Update clients"
git push -f --set-upstream origin generate-clients
gh pr create --base main --head generate-clients --title "Update clients" --body "Update clients"