File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,21 @@ jobs:
134134 working-directory : out/wpt
135135 run : |
136136 gzip wptreport.json
137+ echo "## Node.js ${{ steps.setup-node.outputs.node-version }}" >> $GITHUB_STEP_SUMMARY
137138 for WPT_FYI_ENDPOINT in "https://wpt.fyi/api/results/upload" "https://staging.wpt.fyi/api/results/upload"
138139 do
139- curl \
140+ response=$( curl -sS \
140141 -u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \
141142 -F "result_file=@wptreport.json.gz" \
142143 -F "labels=master" \
143- $WPT_FYI_ENDPOINT
144+ $WPT_FYI_ENDPOINT)
145+
146+ if [[ $response =~ Task\ ([0-9]+)\ added\ to\ queue ]]; then
147+ run_id=${BASH_REMATCH[1]}
148+ origin=${WPT_FYI_ENDPOINT%/api/results/upload}
149+
150+ echo "" >> $GITHUB_STEP_SUMMARY
151+ echo "Run ID [$run_id]($origin/api/runs/$run_id) added to the processor queue at $origin" >> $GITHUB_STEP_SUMMARY
152+ echo "- [View on the ${origin:8} dashboard]($origin/results?run_id=$run_id)" >> $GITHUB_STEP_SUMMARY
153+ fi
144154 done
You can’t perform that action at this time.
0 commit comments