Update vendored OpenAPI spec #15
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: Update vendored OpenAPI spec | |
| permissions: {} | |
| on: | |
| schedule: | |
| # run every day at 6:00 AM UTC | |
| - cron: '0 6 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| update-spec: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Fetch spec and regenerate SDK client | |
| run: npm run update-spec | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: 'chore(sdk): update vendored OpenAPI spec and regenerate client' | |
| title: 'chore(sdk): update vendored OpenAPI spec and regenerate client' | |
| body: | | |
| Automated update of `packages/sdk/openapi.json` from the live | |
| Platform API, with the generated client regenerated to match. | |
| branch: chore/update-openapi-spec | |
| delete-branch: true |