Sync docs #5
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 docs | |
| # Docs live here; rivet.dev publishes them. On merge to main this copies the | |
| # docs/ bundle into the website's vendor/workflows and opens a PR there, which is | |
| # also what triggers the site rebuild. | |
| # | |
| # No extra-paths: this product owns no examples/ tree. Its <CodeSnippet> paths | |
| # resolve against another product's repo via snippetFrom in the website's | |
| # product-metadata.ts, so nothing outside docs/ needs to travel with the bundle. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: ["docs/**"] | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: rivet-dev/website/.github/actions/sync-docs@main | |
| with: | |
| product: workflows | |
| token: ${{ secrets.RIVET_WEBSITE_TOKEN }} |