1
0
Fork 0
mirror of https://code.forgejo.org/actions/download-artifact synced 2025-07-12 21:25:59 +02:00

Update index.js

This commit is contained in:
Austin Sasko 2022-03-18 17:32:36 -04:00 committed by GitHub
parent 32f0edceb8
commit eaefda7e3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

1
dist/index.js vendored
View file

@ -6523,6 +6523,7 @@ class DownloadHttpClient {
// check if the extract parameter is true, which by default it will be, and if so determine if the file is decompressable and decompress it. // check if the extract parameter is true, which by default it will be, and if so determine if the file is decompressable and decompress it.
// if extract parameter is set to be false, don't even check if its a compressed file, just download the file as-is // if extract parameter is set to be false, don't even check if its a compressed file, just download the file as-is
const gunzip = isGzipped && extract ? true : false; const gunzip = isGzipped && extract ? true : false;
core.info(`Calling pipeResponseToFile with ${gunzip} as gunzip value and ${isGzipped} as izgzipped value`)
yield this.pipeResponseToFile(response, destinationStream, gunzip); yield this.pipeResponseToFile(response, destinationStream, gunzip);
if (gunzip || if (gunzip ||
isAllBytesReceived(response.message.headers['content-length'], yield utils_1.getFileSize(downloadPath))) { isAllBytesReceived(response.message.headers['content-length'], yield utils_1.getFileSize(downloadPath))) {