Skip to content

Commit 1ab6699

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 0c40c7f commit 1ab6699

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
@@ -124,7 +124,7 @@ jobs:
124124
upload_response=$(curl -s -X POST \
125125
-H "Authorization: Bearer $GITHUB_TOKEN" \
126126
-H "Content-Type: application/octet-stream" \
127-
--data-binary @"assets/$new_name" \
127+
-T "assets/$new_name" \
128128
"$UPLOAD_URL?name=$new_name")
129129
if echo "$upload_response" | jq -e .id > /dev/null; then
130130
echo "$file_name uploaded successfully."

0 commit comments

Comments
 (0)