Repository navigation
Plugin Checks (Schedule) #1438
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 Checks (Schedule) | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0,12 * * *' | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-plugin: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Dependencies & Build | |
| run: npm install && npm install --prefix src/plugin-checks/workspace && npm run plugin-checks:build | |
| - name: Randomly Select Plugin | |
| id: get-verified-plugin | |
| run: | | |
| plugin=$(jq -r 'to_entries | map(select(.value.verified == true)) | .[].key' assets/plugins.json | shuf -n 1) | |
| echo "plugin=$plugin" >> $GITHUB_ENV | |
| shell: bash | |
| - name: Check Plugin | |
| uses: ./src/plugin-checks | |
| with: | |
| plugin: ${{ env.plugin }} |