From 77194e983e322cfe727ccd53631ccd0af543eec1 Mon Sep 17 00:00:00 2001 From: Ronan McCarter <63772591+rpmccarter@users.noreply.github.com> Date: Thu, 9 May 2024 15:11:16 -0700 Subject: [PATCH] add workflow to trigger mintlify in base repo --- .github/workflows/docs.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..045c89434 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,22 @@ +name: docs + +on: + push: + branches: + - 'master' + +jobs: + trigger-mintlify: + runs-on: ubuntu-latest + steps: + - name: Trigger mintlify workflow + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.DOCS_WORKFLOW_TOKEN }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: 'anant-writer', + repo: 'docs', + workflow_id: 'mintlify-action.yml', + ref: 'main', + });