tools: upload daily WPT Report to both staging and production
PR-URL: https://github.com/nodejs/node/pull/46803 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
31e046b9dd
commit
b489ae3c52
14
.github/workflows/daily-wpt-fyi.yml
vendored
14
.github/workflows/daily-wpt-fyi.yml
vendored
@ -96,16 +96,18 @@ jobs:
|
|||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
- name: Upload WPT Report to wpt.fyi API
|
- name: Upload WPT Report to wpt.fyi API
|
||||||
env:
|
env:
|
||||||
WPT_FYI_ENDPOINT: ${{ vars.WPT_FYI_ENDPOINT }}
|
|
||||||
WPT_FYI_USERNAME: ${{ vars.WPT_FYI_USERNAME }}
|
WPT_FYI_USERNAME: ${{ vars.WPT_FYI_USERNAME }}
|
||||||
WPT_FYI_PASSWORD: ${{ secrets.WPT_FYI_PASSWORD }}
|
WPT_FYI_PASSWORD: ${{ secrets.WPT_FYI_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
if [ -e out/wpt/wptreport.json ]; then
|
if [ -e out/wpt/wptreport.json ]; then
|
||||||
cd out/wpt
|
cd out/wpt
|
||||||
gzip wptreport.json
|
gzip wptreport.json
|
||||||
curl \
|
for WPT_FYI_ENDPOINT in "https://wpt.fyi/api/results/upload" "https://staging.wpt.fyi/api/results/upload"
|
||||||
-u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \
|
do
|
||||||
-F "result_file=@wptreport.json.gz" \
|
curl \
|
||||||
-F "labels=master" \
|
-u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \
|
||||||
$WPT_FYI_ENDPOINT
|
-F "result_file=@wptreport.json.gz" \
|
||||||
|
-F "labels=master" \
|
||||||
|
$WPT_FYI_ENDPOINT
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user