Skip to content

Commit

Permalink
add trigger mintlify update step to build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez committed Jan 17, 2024
1 parent 067c634 commit 53a3901
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,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 nixtla
- name: Deploy to Github Pages
Expand Down

0 comments on commit 53a3901

Please sign in to comment.