-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (28 loc) · 951 Bytes
/
sync-skill-template.yml
File metadata and controls
33 lines (28 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Sync skill template
on:
workflow_dispatch:
push:
paths:
- templates/skill.md
permissions:
contents: write
jobs:
copy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Copy templates/skill.md to skill-research skill-template.md
run: |
mkdir -p .github/skills/skill-research
cp templates/skill.md .github/skills/skill-research/skill-template.md
- name: Commit if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .github/skills/skill-research/skill-template.md
if git diff --staged --quiet; then
echo "No changes to skill-template.md"
exit 0
fi
git commit -m "chore: sync skill-template.md from templates/skill.md"
git push