-
Notifications
You must be signed in to change notification settings - Fork 126
44 lines (38 loc) · 1.1 KB
/
sync-claude-skills-mirror.yml
File metadata and controls
44 lines (38 loc) · 1.1 KB
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
34
35
36
37
38
39
40
41
42
43
44
name: Sync Claude Skills Mirror
on:
push:
branches:
- main
paths:
- 'config/source/skills/**'
- 'scripts/sync-claude-skills-mirror.mjs'
- '.github/workflows/sync-claude-skills-mirror.yml'
workflow_dispatch:
permissions:
contents: write
jobs:
sync-claude-skills:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Sync Claude skills mirror
run: node scripts/sync-claude-skills-mirror.mjs
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add config/.claude/skills
if git diff --staged --quiet; then
echo "No changes, skipping."
else
git commit -m "chore: sync claude skills mirror from source"
git push
fi