| 1 | name: 'Update @fig/publish-spec spec' |
| 2 | on: |
| 3 | push: |
| 4 | tags: |
| 5 | - '@fig/publish-spec@*' |
| 6 | workflow_dispatch: |
| 7 | |
| 8 | jobs: |
| 9 | run-integration-tests: |
| 10 | runs-on: ubuntu-latest |
| 11 | steps: |
| 12 | - name: Repository Dispatch |
| 13 | uses: peter-evans/repository-dispatch@v3 |
| 14 | with: |
| 15 | token: ${{ secrets.FIG_BOT_TOKEN }} |
| 16 | repository: withfig/publish-spec-to-team |
| 17 | event-type: dependency-update |
| 18 | push-to-fig-autocomplete: |
| 19 | runs-on: ubuntu-latest |
| 20 | steps: |
| 21 | - uses: actions/checkout@v4 |
| 22 | - uses: actions/setup-node@v4 |
| 23 | - uses: pnpm/action-setup@v4 |
| 24 | - run: | |
| 25 | pnpm install |
| 26 | pnpm run --filter ./cli/publish-spec generate-spec > generated.ts |
| 27 | - name: 'Create Autocomplete PR' |
| 28 | uses: withfig/push-to-fig-autocomplete-action@v2 |
| 29 | with: |
| 30 | token: ${{ secrets.FIG_BOT_TOKEN }} |
| 31 | autocomplete-spec-name: '@fig/publish-spec' |
| 32 | spec-path: generated.ts |
| 33 | integration: commander |