| 1 | name: Update Docs & Website |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | push: |
| 6 | paths: |
| 7 | - "types/index.d.ts" |
| 8 | |
| 9 | jobs: |
| 10 | update-docs: |
| 11 | if: github.ref == 'refs/heads/main' |
| 12 | runs-on: "ubuntu-latest" |
| 13 | steps: |
| 14 | - name: Repository Dispatch |
| 15 | uses: peter-evans/repository-dispatch@v3 |
| 16 | with: |
| 17 | token: ${{ secrets.FIG_BOT_TOKEN }} |
| 18 | repository: withfig/public-site-nextjs |
| 19 | event-type: autocomplete-docs |