Skip to content

Commit

Permalink
add workflow to trigger mintlify in base repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rpmccarter committed May 9, 2024
1 parent 6c21a9f commit 77194e9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -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',
});

0 comments on commit 77194e9

Please sign in to comment.