OpenAPI #26
This file contains hidden or 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
| name: OpenAPI | |
| on: | |
| schedule: | |
| # run every Monday at 10am UTC | |
| - cron: "0 10 * * 1" | |
| workflow_dispatch: | |
| jobs: | |
| update-openapi: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: jdx/mise-action@v2 | |
| with: | |
| install: false | |
| experimental: true | |
| - name: Install toolchains | |
| run: | | |
| mise install rust | |
| mise install | |
| - name: Run Codegen | |
| run: mise gen-openapi | |
| - name: create pull request | |
| uses: peter-evans/create-pull-request@v3 | |
| with: | |
| token: ${{ secrets.REPO_SCOPED_TOKEN }} | |
| commit-message: Generate latest changes from OpenApi spec | |
| title: Generate latest changes from OpenApi spec | |
| body: | | |
| This is an automated PR that tries to build the latest changes generated from the [Privy OpenApi spec](https://api.privy.io/v1/openapi.json). | |
| branch: openapi | |
| branch-suffix: timestamp | |
| reviewers: arlyon |