Skip to content

v4 — four right-sized plugins: launchpad, tpm, docs, commit #5

v4 — four right-sized plugins: launchpad, tpm, docs, commit

v4 — four right-sized plugins: launchpad, tpm, docs, commit #5

name: Validate Frontmatter
on:
pull_request:
paths:
- '**/agents/*.md'
- '**/skills/*/SKILL.md'
- '**/commands/*.md'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: cd .github/scripts && bun install yaml
- name: Get changed frontmatter files
id: changed
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
run: |
FILES=$(git diff --name-only "origin/$BASE_REF"...HEAD | grep -E '(agents/.*\.md|skills/.*/SKILL\.md|commands/.*\.md)$' || true)
echo "files<<EOF" >> "$GITHUB_OUTPUT"
echo "$FILES" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
- name: Validate frontmatter
if: steps.changed.outputs.files != ''
env:
FILES: ${{ steps.changed.outputs.files }}
run: |
echo "$FILES" | xargs bun .github/scripts/validate-frontmatter.ts