Plugin Metadata Sync #14330
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: Plugin Metadata Sync | |
| on: | |
| schedule: | |
| - cron: "*/30 * * * *" | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python & uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: 3.11 | |
| activate-environment: true | |
| - name: Cache Python dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/uv | |
| ~\AppData\Local\uv | |
| key: ${{ runner.os }}-uv-cache-${{ hashFiles('uv.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-uv-cache- | |
| - name: Install dependencies | |
| run: | | |
| uv pip install pydantic requests | |
| - name: Run updater | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| uv run scripts/update_plugin_list.py | |
| - name: Fixes for changes | |
| id: pre-commit | |
| uses: j178/prek-action@v1 | |
| continue-on-error: true | |
| - name: Import GPG key | |
| id: import-gpg-compile | |
| uses: crazy-max/ghaction-import-gpg@v6 | |
| continue-on-error: true | |
| with: | |
| gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
| git_user_signingkey: true | |
| git_commit_gpgsign: true | |
| - name: Commit updated plugin registry | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| continue-on-error: true | |
| with: | |
| commit_message: "chore: sync plugin metadata [skip ci]" | |
| commit_options: "--no-verify --signoff" | |
| file_pattern: "Plugins/plugin_list.json" | |
| commit_user_name: "ChimeYao-bot" | |
| commit_user_email: "[email protected]" | |
| commit_author: "ChimeYao-bot <[email protected]>" |