-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.22 KB
/
plugin-check-stats.yml
File metadata and controls
43 lines (37 loc) · 1.22 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
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 }}"