-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 925 Bytes
/
Copy pathsync.yml
File metadata and controls
40 lines (32 loc) · 925 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
34
35
36
37
38
39
40
name: Sync plugin
on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
repository_dispatch:
types: [openapi-updated]
permissions:
contents: write
concurrency:
group: sync
cancel-in-progress: false
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- name: Regenerate plugin artifacts from the live spec
run: bun run sync
- name: Commit regenerated artifacts
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add skills .mcp.json .claude-plugin
if git diff --cached --quiet; then
echo "No artifact changes."
else
git commit -m "sync: regenerate plugin from live OpenAPI spec"
git push
fi