Sync Management API Types #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: Sync Management API Types | |
| on: | |
| schedule: | |
| - cron: '0 6 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 | |
| with: | |
| install: true | |
| cache: true | |
| - name: Generate GitHub App token | |
| id: generate-token | |
| uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 | |
| with: | |
| client-id: ${{ secrets.GH_APP_ID }} | |
| private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | |
| - name: Install dependencies | |
| run: pnpm install --ignore-scripts | |
| - name: Regenerate management API types | |
| run: pnpm --filter @supabase/mcp-server-supabase generate:management-api-types | |
| - name: Create or update pull request | |
| uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9 | |
| with: | |
| token: ${{ steps.generate-token.outputs.token }} | |
| add-paths: packages/mcp-server-supabase/src/management-api/types.ts | |
| branch: chore/regenerate-management-api-types | |
| commit-message: 'chore: regenerate management API types' | |
| title: 'chore: regenerate management API types' | |
| body: | | |
| Automatically generated by the [Sync Management API Types](https://github.com/supabase/mcp/actions/workflows/sync-management-api-types.yml) workflow. | |
| This regenerates `packages/mcp-server-supabase/src/management-api/types.ts` from the current [Management API OpenAPI spec](https://api.supabase.com/api/v1-json). |