From de21ca47795482e394806d8df49e5e6478eaa3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sun, 10 May 2026 21:11:48 +0200 Subject: [PATCH] Fix asset upload: use multipart/form-data (-F) not raw binary --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5a90fb..6032a77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -161,9 +161,8 @@ jobs: name=$(basename "$diff" | sed 's/-diff-chromium-[a-z]*\.png//' | sed 's/-/ /g') 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" \ + -F "file=@$diff;type=image/png" \ "https://uploads.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/assets?name=$(basename $diff)") http_code=$(echo "$response" | tail -1) body_resp=$(echo "$response" | head -1)