-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.75 KB
/
Copy pathsync-plugins.yml
File metadata and controls
47 lines (47 loc) · 1.75 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
45
46
47
name: sync-marketplace-from-sources
on:
schedule:
- cron: "*/10 * * * *" # every 10 min — keep rolling commit hashes fresh
workflow_dispatch: {}
push:
branches: [main]
paths:
- ".claude-plugin/marketplace.json"
- ".grok-plugin/marketplace.json"
- "scripts/sync_marketplace.py"
- "scripts/build_readme.py"
- "scripts/generate-grok-catalog.py"
- "scripts/generate-grok-plugin-index.py"
permissions:
contents: write
jobs:
sync:
runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v7.0.0
- uses: actions/setup-python@v6.3.0
with:
python-version: "3.13"
- name: Sync marketplace metadata from each plugin source
env:
GITHUB_TOKEN: ${{ github.token }}
run: python scripts/sync_marketplace.py
- name: Regenerate README from the catalog
env:
GITHUB_TOKEN: ${{ github.token }}
run: python scripts/build_readme.py
- name: Generate Grok catalog (shas + metadata from Claude catalog)
run: python scripts/generate-grok-catalog.py
- name: Generate Grok plugin index (rich components for TUI Marketplace)
run: python scripts/generate-grok-plugin-index.py
- name: Commit if changed
run: |
if ! git diff --quiet -- .claude-plugin/marketplace.json .grok-plugin/ README.md; then
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .claude-plugin/marketplace.json .grok-plugin/ README.md
git commit -m "chore: auto-sync catalog + regenerate README + Grok plugin-index"
git push
else
echo "already in sync"
fi