Skip to content

Commit 187c0b8

Browse files
committed
chore: 1
1 parent ca6bfe5 commit 187c0b8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish-atomgit.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,12 @@ jobs:
133133
continue
134134
fi
135135
136-
UPLOAD_HEADERS=$(echo "$UPLOAD_RESPONSE" | jq -r '.headers // {}')
137-
138136
CONTENT_LENGTH=$(wc -c < "$file")
139137
138+
CURL_HEADERS=$(echo "$UPLOAD_RESPONSE" | jq -r '.headers // {} | to_entries[] | "-H \(.key): \(.value)"' | tr '\n' ' ')
139+
140140
curl -s -X PUT \
141+
$CURL_HEADERS \
141142
-H "Content-Length: $CONTENT_LENGTH" \
142143
--data-binary "@$file" \
143144
"$UPLOAD_URL"

0 commit comments

Comments
 (0)