mirror of
https://github.com/JuliusBrussee/caveman.git
synced 2026-08-11 13:21:09 +02:00
Add GitHub Action to auto-sync SKILL.md copies on push to main
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
name: Sync SKILL.md
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- skills/caveman/SKILL.md
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Copy to duplicate locations
|
||||
run: |
|
||||
cp skills/caveman/SKILL.md caveman/SKILL.md
|
||||
cp skills/caveman/SKILL.md plugins/caveman/skills/caveman/SKILL.md
|
||||
|
||||
- name: Rebuild caveman.skill ZIP
|
||||
run: |
|
||||
mkdir -p _zip_tmp/caveman
|
||||
cp skills/caveman/SKILL.md _zip_tmp/caveman/SKILL.md
|
||||
cd _zip_tmp && zip -r ../caveman.skill caveman/
|
||||
cd .. && rm -rf _zip_tmp
|
||||
|
||||
- name: Commit if changed
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git diff --quiet && exit 0
|
||||
git add caveman/SKILL.md plugins/caveman/skills/caveman/SKILL.md caveman.skill
|
||||
git commit -m "chore: sync SKILL.md copies and caveman.skill"
|
||||
git push
|
||||
+3
-1
@@ -5,12 +5,14 @@ Improvements to the SKILL.md prompt are welcome — open a PR with before/after
|
||||
## How
|
||||
|
||||
1. Fork repo
|
||||
2. Edit `skills/caveman/SKILL.md`
|
||||
2. Edit `skills/caveman/SKILL.md` — this is the only copy you need to touch
|
||||
3. Open PR with:
|
||||
- **Before:** what caveman say now
|
||||
- **After:** what caveman say with change
|
||||
- One sentence why change better
|
||||
|
||||
> **Note:** `caveman/SKILL.md`, `plugins/caveman/skills/caveman/SKILL.md`, and `caveman.skill` are auto-synced by CI after merge. Do not edit them directly.
|
||||
|
||||
Small focused change > big rewrite. Caveman like simple.
|
||||
|
||||
## Ideas
|
||||
|
||||
Reference in New Issue
Block a user