mirror of
https://code.forgejo.org/actions/download-artifact
synced 2025-07-15 22:43:52 +02:00
Update index.js
This commit is contained in:
parent
8e0ac783cd
commit
feed6afd79
1 changed files with 4 additions and 2 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
@ -6565,10 +6565,10 @@ class DownloadHttpClient {
|
|||
*/
|
||||
pipeResponseToFile(response, destinationStream, isGzip) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
core.info(`Called with ${izGzip}`)
|
||||
core.info(`Called with ${JSON.stringify(response)}`)
|
||||
yield new Promise((resolve, reject) => {
|
||||
if (isGzip) {
|
||||
core.info(`Called with ${izGzip}`);
|
||||
core.info(`Called with ${JSON.stringify(response)}`);
|
||||
const gunzip = zlib.createGunzip();
|
||||
response.message
|
||||
.on('error', error => {
|
||||
|
@ -6593,6 +6593,8 @@ class DownloadHttpClient {
|
|||
});
|
||||
}
|
||||
else {
|
||||
core.info(`Called with ${izGzip}`);
|
||||
core.info(`Called with ${JSON.stringify(response)}`);
|
||||
response.message
|
||||
.on('error', error => {
|
||||
core.error(`An error occurred while attempting to read the response stream`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue