8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12a5618 commit 36c48eaCopy full SHA for 36c48ea
.github/workflows/daily-wpt-fyi.yml
@@ -134,11 +134,21 @@ jobs:
134
working-directory: out/wpt
135
run: |
136
gzip wptreport.json
137
+ echo "## Node.js ${{ steps.setup-node.outputs.node-version }}" >> $GITHUB_STEP_SUMMARY
138
for WPT_FYI_ENDPOINT in "https://wpt.fyi/api/results/upload" "https://staging.wpt.fyi/api/results/upload"
139
do
- curl \
140
+ response=$(curl -sS \
141
-u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \
142
-F "result_file=@wptreport.json.gz" \
143
-F "labels=master" \
- $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
154
done