-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs-sync.yml
More file actions
64 lines (53 loc) · 1.63 KB
/
Copy pathdocs-sync.yml
File metadata and controls
64 lines (53 loc) · 1.63 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Docs Sync
on:
push:
branches: [main] # change to match your default branch
paths-ignore:
- "docs/**"
- "**/*.md"
pull_request:
branches: [main] # runs check (no writes) on PRs
types: [opened, synchronize]
workflow_dispatch:
inputs:
force:
description: "Force recompile all docs"
type: boolean
default: false
permissions:
contents: write
pull-requests: write
concurrency:
group: docs-sync
cancel-in-progress: true
jobs:
compile:
name: Compile Docs
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: thevrus/wiki-forge@v1
id: forge
with:
api_key: ${{ secrets.GEMINI_API_KEY }}
force: ${{ inputs.force || 'false' }}
- uses: peter-evans/create-pull-request@v7
if: steps.forge.outputs.docs_changed == 'true'
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: docs/auto-sync
delete-branch: true
title: "docs: sync documentation with codebase changes"
body: |
## Auto-compiled docs update
**Updated:** ${{ steps.forge.outputs.updated_docs }}
${{ steps.forge.outputs.diff_summary }}
> Auto-generated by [Wiki Forge](https://github.com/thevrus/wiki-forge)
### Review checklist
- [ ] Changes accurately reflect the codebase
- [ ] No sensitive information exposed
commit-message: "docs: auto-sync documentation with codebase changes"
labels: documentation,automated