Skip to content

Commit

Permalink
gh: disable slurping in curl
Browse files Browse the repository at this point in the history
curl --data-binary reads in the whole file first before
sending it
see also: curl/curl#1385 (comment)

Signed-off-by: Christoph Ostarek <[email protected]>
(cherry picked from commit aede622)
  • Loading branch information
christoph-zededa authored and OhmSpectator committed Feb 27, 2025
1 parent 0c40c7f commit 1ab6699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
upload_response=$(curl -s -X POST \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @"assets/$new_name" \
-T "assets/$new_name" \
"$UPLOAD_URL?name=$new_name")
if echo "$upload_response" | jq -e .id > /dev/null; then
echo "$file_name uploaded successfully."
Expand Down

0 comments on commit 1ab6699

Please sign in to comment.