File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,8 @@ jobs:
128128 # Upload v8
129129 response=$(curl -s -o /dev/null -w "%{http_code}" --fail -X PATCH \
130130 -H "Authorization: Bearer $ACCESS_TOKEN" \
131- -F "file=@${V8_PATH};type=application/octet-stream" \
131+ -H "Content-Type: application/zip" \
132+ --data-binary @"${V8_PATH}" \
132133 "https://www.googleapis.com/upload/drive/v3/files/${V8_FILE_ID}?uploadType=media")
133134
134135 if [[ "$response" -ne 200 ]]; then
@@ -139,7 +140,8 @@ jobs:
139140 # Upload v7
140141 response=$(curl -s -o /dev/null -w "%{http_code}" --fail -X PATCH \
141142 -H "Authorization: Bearer $ACCESS_TOKEN" \
142- -F "file=@${V7_PATH};type=application/octet-stream" \
143+ -H "Content-Type: application/zip" \
144+ --data-binary @"${V7_PATH}" \
143145 "https://www.googleapis.com/upload/drive/v3/files/${V7_FILE_ID}?uploadType=media")
144146
145147 if [[ "$response" -ne 200 ]]; then
You can’t perform that action at this time.
0 commit comments