We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca6bfe5 commit 187c0b8Copy full SHA for 187c0b8
1 file changed
.github/workflows/publish-atomgit.yml
@@ -133,11 +133,12 @@ jobs:
133
continue
134
fi
135
136
- UPLOAD_HEADERS=$(echo "$UPLOAD_RESPONSE" | jq -r '.headers // {}')
137
-
138
CONTENT_LENGTH=$(wc -c < "$file")
139
+ CURL_HEADERS=$(echo "$UPLOAD_RESPONSE" | jq -r '.headers // {} | to_entries[] | "-H \(.key): \(.value)"' | tr '\n' ' ')
+
140
curl -s -X PUT \
141
+ $CURL_HEADERS \
142
-H "Content-Length: $CONTENT_LENGTH" \
143
--data-binary "@$file" \
144
"$UPLOAD_URL"
0 commit comments