Plugin Check Stats #12
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 Check Stats | |
| on: | |
| #schedule: | |
| # - cron: '* * * * *' | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| plugin-check: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| plugin_slug: | |
| - pods-alternative-cache | |
| steps: | |
| - name: Download plugin from WordPress.org | |
| run: | | |
| curl --fail -L "https://downloads.wordpress.org/plugin/${{ matrix.plugin_slug }}.zip" -o plugin.zip | |
| unzip plugin.zip | |
| - name: Run Plugin Check | |
| uses: WordPress/plugin-check-action@v1 | |
| continue-on-error: true | |
| with: | |
| build-dir: ./${{ matrix.plugin_slug }} | |
| slug: ${{ matrix.plugin_slug }} | |
| - name: POST results to API | |
| env: | |
| COMPAREWPORG_API_KEY: ${{ secrets.COMPAREWPORG_API_KEY }} | |
| run: | | |
| RESULTS_FILE="${{ runner.temp }}/plugin-check-results.txt" | |
| if [ ! -f "$RESULTS_FILE" ]; then | |
| echo "Results file not found, skipping POST." | |
| exit 0 | |
| fi | |
| curl --fail-with-body -X POST \ | |
| --data-urlencode "results@$RESULTS_FILE" \ | |
| "https://comparewp.org/plugin-check-api/${{ matrix.plugin_slug }}/?api_key=${{ env.COMPAREWPORG_API_KEY }}" |