Skip to content

Commit dbbed72

Browse files
christoph-zededaOhmSpectator
authored andcommitted
gh: disable slurping in curl
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)
1 parent edba861 commit dbbed72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/assets.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
upload_response=$(curl -s -X POST \
134134
-H "Authorization: Bearer $GITHUB_TOKEN" \
135135
-H "Content-Type: application/octet-stream" \
136-
--data-binary @"assets/$new_name" \
136+
-T "assets/$new_name" \
137137
"$UPLOAD_URL?name=$new_name")
138138
if echo "$upload_response" | jq -e .id > /dev/null; then
139139
echo "$file_name uploaded successfully."

0 commit comments

Comments
 (0)