Index docs #3279
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: Index docs | |
| on: | |
| schedule: | |
| - cron: "0 */3 * * *" | |
| jobs: | |
| lint: | |
| name: Index Docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "22" | |
| - name: Install CLI | |
| run: npm install -g @team-plain/cli@latest | |
| - name: Index Docs (prod) | |
| run: plain index-sitemap https://www.plain.com/docs/sitemap.xml | |
| env: | |
| PLAIN_API_KEY: ${{ secrets.PLAIN_API_KEY }} | |
| - name: Index Docs (demo workspace) | |
| run: plain index-sitemap https://www.plain.com/docs/sitemap.xml | |
| env: | |
| PLAIN_API_KEY: ${{ secrets.PLAIN_API_KEY_DEMO_WORKSPACE }} | |
| - name: Index Help Center (demo workspace) | |
| run: plain index-sitemap https://plain.support.site/sitemap.xml | |
| env: | |
| PLAIN_API_KEY: ${{ secrets.PLAIN_API_KEY_DEMO_WORKSPACE }} |