sync-to-ai-plugins #46
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 from upstream registries | |
| on: | |
| repository_dispatch: | |
| types: [sync-to-ai-plugins] | |
| permissions: | |
| contents: write | |
| jobs: | |
| sync: | |
| name: Sync from upstream plugin registries | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout awesome-ai-plugins | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| fetch-depth: 1 | |
| - name: Checkout awesome-codex-plugins | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: hashgraph-online/awesome-codex-plugins | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| path: codex-source | |
| fetch-depth: 1 | |
| - name: Checkout awesome-grok-plugins | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: hashgraph-online/awesome-grok-plugins | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| path: grok-source | |
| fetch-depth: 1 | |
| - name: Sync README from codex | |
| run: | | |
| cp codex-source/README.md README.md | |
| - name: Regenerate combined JSON from all upstream sources | |
| run: | | |
| python3 scripts/generate_plugins_json.py || true | |
| - name: Commit and push | |
| run: | | |
| if ! git diff --quiet -- README.md plugins.json .agents/plugins/marketplace.json; then | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add README.md plugins.json .agents/plugins/marketplace.json | |
| git commit -m "chore: sync from upstream registries" | |
| git push | |
| else | |
| echo "No changes to sync" | |
| fi |