Skip to content

Commit

Permalink
tools: upload daily WPT Report to both staging and production
Browse files Browse the repository at this point in the history
PR-URL: #46803
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Tierney Cyren <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
panva authored and targos committed Mar 14, 2023
1 parent bd097ca commit 4b91420
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/daily-wpt-fyi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,18 @@ jobs:
if-no-files-found: warn
- name: Upload WPT Report to wpt.fyi API
env:
WPT_FYI_ENDPOINT: ${{ vars.WPT_FYI_ENDPOINT }}
WPT_FYI_USERNAME: ${{ vars.WPT_FYI_USERNAME }}
WPT_FYI_PASSWORD: ${{ secrets.WPT_FYI_PASSWORD }}
run: |
if [ -e out/wpt/wptreport.json ]; then
cd out/wpt
gzip wptreport.json
curl \
-u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \
-F "[email protected]" \
-F "labels=master" \
$WPT_FYI_ENDPOINT
for WPT_FYI_ENDPOINT in "https://wpt.fyi/api/results/upload" "https://staging.wpt.fyi/api/results/upload"
do
curl \
-u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \
-F "[email protected]" \
-F "labels=master" \
$WPT_FYI_ENDPOINT
done
fi

0 comments on commit 4b91420

Please sign in to comment.