From 2296c259542dbd906cfba4b8345c3b72148dad79 Mon Sep 17 00:00:00 2001 From: Ronan McCarter <63772591+rpmccarter@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:57:08 -0800 Subject: [PATCH] add step to trigger mintlify workflow (#259) --- .github/workflows/build-docs.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yaml index 91777c7c..fd76587a 100644 --- a/.github/workflows/build-docs.yaml +++ b/.github/workflows/build-docs.yaml @@ -52,6 +52,18 @@ jobs: publish_dir: ./_docs user_name: github-actions[bot] user_email: 41898282+github-actions[bot]@users.noreply.github.com + - name: Trigger mintlify workflow + if: github.event_name == 'push' + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.DOCS_WORKFLOW_TOKEN }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: 'nixtla', + repo: 'docs', + workflow_id: 'mintlify-action.yml', + ref: 'main', + }); - name: Configure redirects for gh-pages run: python docs-scripts/configure-redirects.py hierarchicalforecast - name: Deploy to Github Pages