Skip to content

Commit bc7e8ec

Browse files
authored
Add scheduled skills maintenance workflow (#21)
* Add scheduled skills maintenance workflow * fix: use canonical skills agent inputs
1 parent 0ea3b66 commit bc7e8ec

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

.github/workflows/skills-agent.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build With WordPress Skills Agent
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 9 * * 1'
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
issues: write
12+
13+
jobs:
14+
skills-agent:
15+
name: Maintain Live Skills
16+
uses: Automattic/docs-agent/.github/workflows/maintain-docs.yml@main
17+
with:
18+
audience: skills
19+
base_ref: trunk
20+
docs_branch: docs-agent/build-with-wordpress-skills
21+
writable_paths: skills/**,plugins/**/skills/**,plugins/**/README.md
22+
context_repositories: |
23+
[
24+
{
25+
"repo": "Automattic/studio",
26+
"ref": "trunk",
27+
"alias": "studio",
28+
"paths": [
29+
"apps/cli/ai/tools/**",
30+
"apps/cli/ai/system-prompt.ts",
31+
"apps/cli/commands/mcp.ts",
32+
"eval/promptfoo.config.yaml"
33+
]
34+
},
35+
{
36+
"repo": "WordPress/agent-skills",
37+
"ref": "trunk",
38+
"alias": "wordpress-agent-skills",
39+
"paths": [
40+
"skills/**",
41+
"docs/packaging.md",
42+
".github/workflows/ai-skill-maintenance.yml"
43+
]
44+
}
45+
]
46+
verification_commands: |
47+
[
48+
"pnpm build",
49+
"pnpm verify"
50+
]
51+
drift_checks: |
52+
[
53+
{
54+
"command": "git diff --exit-code",
55+
"description": "Generated skill package outputs are committed after build"
56+
}
57+
]
58+
secrets: inherit

0 commit comments

Comments
 (0)