mirror of
https://code.forgejo.org/actions/download-artifact
synced 2025-07-12 13:16:00 +02:00
Update index.js
This commit is contained in:
parent
32f0edceb8
commit
eaefda7e3f
1 changed files with 2 additions and 1 deletions
1
dist/index.js
vendored
1
dist/index.js
vendored
|
@ -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.
|
||||
// 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;
|
||||
core.info(`Calling pipeResponseToFile with ${gunzip} as gunzip value and ${isGzipped} as izgzipped value`)
|
||||
yield this.pipeResponseToFile(response, destinationStream, gunzip);
|
||||
if (gunzip ||
|
||||
isAllBytesReceived(response.message.headers['content-length'], yield utils_1.getFileSize(downloadPath))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue