Skip to content

Commit 4b91420

Browse files
panvatargos
authored andcommitted
tools: upload daily WPT Report to both staging and production
PR-URL: #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>
1 parent bd097ca commit 4b91420

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/daily-wpt-fyi.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,18 @@ jobs:
9696
if-no-files-found: warn
9797
- name: Upload WPT Report to wpt.fyi API
9898
env:
99-
WPT_FYI_ENDPOINT: ${{ vars.WPT_FYI_ENDPOINT }}
10099
WPT_FYI_USERNAME: ${{ vars.WPT_FYI_USERNAME }}
101100
WPT_FYI_PASSWORD: ${{ secrets.WPT_FYI_PASSWORD }}
102101
run: |
103102
if [ -e out/wpt/wptreport.json ]; then
104103
cd out/wpt
105104
gzip wptreport.json
106-
curl \
107-
-u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \
108-
-F "result_file=@wptreport.json.gz" \
109-
-F "labels=master" \
110-
$WPT_FYI_ENDPOINT
105+
for WPT_FYI_ENDPOINT in "https://wpt.fyi/api/results/upload" "https://staging.wpt.fyi/api/results/upload"
106+
do
107+
curl \
108+
-u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \
109+
-F "result_file=@wptreport.json.gz" \
110+
-F "labels=master" \
111+
$WPT_FYI_ENDPOINT
112+
done
111113
fi

0 commit comments

Comments
 (0)