mirror of
https://github.com/gitroomhq/postiz-agent.git
synced 2026-09-14 13:46:24 +08:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: Sync plugin skill on release
|
|
|
|
# Regenerates skills/postiz/SKILL.md from the root SKILL.md whenever a GitHub
|
|
# release is published, and commits it to main so the Claude Code / Cursor
|
|
# plugin manifests always point at an up-to-date, real (non-symlink) file.
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: main
|
|
|
|
- name: Copy SKILL.md into the plugin skill directory
|
|
run: |
|
|
mkdir -p skills/postiz
|
|
cp SKILL.md skills/postiz/SKILL.md
|
|
|
|
- name: Commit and push if changed
|
|
run: |
|
|
if git diff --quiet -- skills/postiz/SKILL.md; then
|
|
echo "skills/postiz/SKILL.md already up to date"
|
|
exit 0
|
|
fi
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add skills/postiz/SKILL.md
|
|
git commit -m "chore: sync plugin skill for ${{ github.event.release.tag_name || 'manual run' }}"
|
|
git push origin main
|