31 lines
822 B
YAML
31 lines
822 B
YAML
name: Check AGENTS.md and marketplace.json
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "scripts/AGENTS_TEMPLATE.md"
|
|
- "scripts/generate_agents.py"
|
|
- "**/SKILL.md"
|
|
- "agents/AGENTS.md"
|
|
- ".claude-plugin/marketplace.json"
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@v7
|
|
|
|
- name: Generate AGENTS.md and validate marketplace.json
|
|
run: uv run scripts/generate_agents.py
|
|
|
|
- name: Ensure AGENTS.md is up to date
|
|
run: |
|
|
git diff --quiet -- agents/AGENTS.md || {
|
|
echo "::error::agents/AGENTS.md is outdated. Run 'python scripts/generate_agents.py' and commit the changes."
|
|
exit 1
|
|
}
|