Repository navigation
Sync plugin #106
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 plugin.json mcp.json .mcp.json .claude-plugin .cursor-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 |