refactor(workflows): rename sync workflow and add README sync

- Rename sync-claude-plugin.yml to sync-skills.yml
- Rename sync-marketplace.js to sync-skills.js
- Update script to also sync README skills table
- Add SKILLS:START/END markers for reliable regex matching
- Truncate skill descriptions to 120 chars in README table
This commit is contained in:
Ben Sabic
2026-01-26 09:52:27 +11:00
parent 8a1dcc657e
commit 48a398ee3a
4 changed files with 218 additions and 97 deletions

30
.github/workflows/sync-skills.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Sync Skills
on:
push:
branches: [main]
paths:
- 'skills/**'
jobs:
sync:
runs-on: ubuntu-slim
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: true
- name: Sync skills
run: node .github/scripts/sync-skills.js
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_user_name: Coreybot
commit_user_email: coreybot+github-actions[bot]@users.noreply.github.com
commit_message: "chore: sync skills with marketplace.json and README"
file_pattern: ".claude-plugin/marketplace.json README.md"