-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.69 KB
/
Copy pathaggregate-docs.yml
File metadata and controls
46 lines (39 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Aggregate Mintlify Docs
on:
push:
branches:
- main # Trigger on push to the main branch of Fulgerr/docs
schedule: # Optional: As per the example, runs daily at midnight UTC
- cron: '0 0 * * *'
workflow_dispatch: # Allows manual triggering
concurrency:
group: aggregate-mintlify-docs # As per the example
cancel-in-progress: true
jobs:
aggregate-docs:
runs-on: ubuntu-latest
name: Aggregate Mintlify Docs # Changed to match your casing preference for titles
steps:
- name: Clone base repo (Fulgerr/docs)
uses: actions/checkout@v4
with:
# The token is needed by the checkout step if you need to fetch submodules
# or if the mintlify action itself doesn't handle the final push adequately.
# Given the action pushes, it's good practice for checkout to also have it.
token: ${{ secrets.mlfy }}
fetch-depth: 0 # Fetches all history, good for some git operations
- name: Run Mintlify multirepo action
uses: mintlify/multirepo-action@v0.16 # Using the action name and version from the example
with:
token: ${{ secrets.mlfy }} # Your secret name
target-branch: docs-compiled # Your target branch name
# Path to the directory containing docs.json in THIS (Fulgerr/docs) repository.
# Since your docs.json is at the root, we use '.'
subdirectory: .
repos: |
- owner: Fulgerr
repo: docsA
ref: main # Or the specific branch you want from docsA
# Path within Fulgerr/docsA to its docs.json.
# Since it's at the root of docsA, this is empty.
subdirectory: ''