| 1 | name: 'Update create-completion-spec spec' |
| 2 | on: |
| 3 | push: |
| 4 | tags: |
| 5 | - 'create-completion-spec@*' |
| 6 | workflow_dispatch: |
| 7 | |
| 8 | jobs: |
| 9 | push-to-fig-autocomplete: |
| 10 | runs-on: ubuntu-latest |
| 11 | steps: |
| 12 | - uses: actions/checkout@v4 |
| 13 | - uses: actions/setup-node@v4 |
| 14 | - uses: pnpm/action-setup@v4 |
| 15 | - run: | |
| 16 | pnpm install |
| 17 | pnpm run --filter ./cli/create-completion-spec generate-spec > generated.ts |
| 18 | - name: 'Create Autocomplete PR' |
| 19 | uses: withfig/push-to-fig-autocomplete-action@v2 |
| 20 | with: |
| 21 | token: ${{ secrets.FIG_BOT_TOKEN }} |
| 22 | autocomplete-spec-name: 'create-completion-spec' |
| 23 | spec-path: generated.ts |
| 24 | integration: commander |