From a852a0acfb90c2889ca5e4c7f06df1602008296e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sun, 10 May 2026 21:06:43 +0200 Subject: [PATCH] Debug: log HTTP status from asset upload --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8c3f7c..a5a90fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -159,13 +159,16 @@ jobs: for diff in $diffs; do name=$(basename "$diff" | sed 's/-diff-chromium-[a-z]*\.png//' | sed 's/-/ /g') - response=$(curl -sf -X POST \ + response=$(curl -s -w "\n%{http_code}" -X POST \ -H "Authorization: Bearer $VISUAL_DIFF_TOKEN" \ -H "Content-Type: image/png" \ -H "Accept: application/json" \ --data-binary @"$diff" \ "https://uploads.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/assets?name=$(basename $diff)") - url=$(echo "$response" | jq -r '.url // empty') + http_code=$(echo "$response" | tail -1) + body_resp=$(echo "$response" | head -1) + echo "Upload HTTP $http_code: $body_resp" + url=$(echo "$body_resp" | jq -r '.url // empty') if [ -n "$url" ]; then body+="| \`$name\` | ![$name]($url) |"$'\n' else