Skip to content

Commit 2296c25

Browse files
authored
add step to trigger mintlify workflow (#259)
1 parent 0b853e5 commit 2296c25

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build-docs.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ jobs:
5252
publish_dir: ./_docs
5353
user_name: github-actions[bot]
5454
user_email: 41898282+github-actions[bot]@users.noreply.github.com
55+
- name: Trigger mintlify workflow
56+
if: github.event_name == 'push'
57+
uses: actions/github-script@v7
58+
with:
59+
github-token: ${{ secrets.DOCS_WORKFLOW_TOKEN }}
60+
script: |
61+
await github.rest.actions.createWorkflowDispatch({
62+
owner: 'nixtla',
63+
repo: 'docs',
64+
workflow_id: 'mintlify-action.yml',
65+
ref: 'main',
66+
});
5567
- name: Configure redirects for gh-pages
5668
run: python docs-scripts/configure-redirects.py hierarchicalforecast
5769
- name: Deploy to Github Pages

0 commit comments

Comments
 (0)