-
Notifications
You must be signed in to change notification settings - Fork 22
57 lines (45 loc) · 1.52 KB
/
update-ai-files.yml
File metadata and controls
57 lines (45 loc) · 1.52 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
name: Update AI Files (SKILL.md)
on:
push:
branches: [main]
paths:
- "content/**/*.md"
- "content/**/*.mdx"
# Allow manual trigger from the Actions tab
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-skill:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Update SKILL.md via Claude
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: bun run scripts/update-ai-files.ts
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: sync SKILL.md from docs changes"
branch: auto/sync-skill-md
delete-branch: true
title: "chore: sync SKILL.md from docs changes"
body: |
This PR was automatically created after doc changes were pushed to `main`.
**Updated files:**
- `skills/cadence/SKILL.md` — AI agent skill reference (regenerated by Claude)
> `llms.txt` and `llms-full.txt` are served dynamically by the app — no static files needed.
Review the diff and merge if the changes look correct.
labels: "automated,ai-content"