-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (23 loc) · 866 Bytes
/
Copy pathdocs-sync.yml
File metadata and controls
29 lines (23 loc) · 866 Bytes
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
name: Doc Sync
on:
workflow_dispatch:
jobs:
sync-docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v5
- name: Install Claude Code
run: npm install -g @anthropic-ai/claude-code
- name: Run doc sync
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: |
claude -p "Run /craft:docs:sync --headless. Update any stale version numbers, command references, and feature descriptions to match the current project state. Commit with message 'docs: auto-sync documentation after merge'." \
--allowedTools "Read,Edit,Write,Bash,Grep"
- name: Push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git push