1
0
Fork 0
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:
Austin Sasko 2022-03-18 18:31:00 -04:00 committed by GitHub
parent 8e0ac783cd
commit feed6afd79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
dist/index.js vendored
View file

@ -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`);