Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcolts18 committed Mar 27, 2024
1 parent e186e4b commit 93a4269
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'build-docs'
on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Trigger mintlify workflow
if: github.event_name == 'push'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.DOCS_CHILDREN_ACTIONS_TRIGGER_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'mintlify-onboarding',
repo: 'skip',
workflow_id: 'mintlify-action.yml',
ref: 'main',
});

0 comments on commit 93a4269

Please sign in to comment.