| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -134,11 +134,21 @@ jobs: | |||
| 134 | 134 | working-directory: out/wpt | |
| 135 | 135 | run: | | |
| 136 | 136 | gzip wptreport.json | |
| 137 | + echo "## Node.js ${{ steps.setup-node.outputs.node-version }}" >> $GITHUB_STEP_SUMMARY | ||
| 137 | 138 | for WPT_FYI_ENDPOINT in "https://wpt.fyi/api/results/upload" "https://staging.wpt.fyi/api/results/upload" | |
| 138 | 139 | do | |
| 139 | - curl \ | ||
| 140 | + response=$(curl -sS \ | ||
| 140 | 141 | -u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \ | |
| 141 | 142 | -F "result_file=@wptreport.json.gz" \ | |
| 142 | 143 | -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 | ||
| 144 | 154 | done | |
| Back | FazBrowse Home | New Git URL |
0 commit comments