From ff3b725db29bc8375b4832b1cb2ee194f7d7d23b Mon Sep 17 00:00:00 2001 From: Matt Vagni Date: Fri, 22 Nov 2024 20:21:48 +0100 Subject: [PATCH] Add workflow file to index docs into Plain --- .github/workflows/index-sitemap.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/index-sitemap.yml diff --git a/.github/workflows/index-sitemap.yml b/.github/workflows/index-sitemap.yml new file mode 100644 index 000000000..a3fc65f71 --- /dev/null +++ b/.github/workflows/index-sitemap.yml @@ -0,0 +1,24 @@ +name: Index docs + +on: + schedule: + - cron: "0 */3 * * *" + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install CLI + run: npm install -g @team-plain/cli@latest + + - name: Index Docs + run: plain index-sitemap https://mintlify.com/docs/sitemap.xml + env: + PLAIN_API_KEY: ${{ secrets.PLAIN_API_KEY }}