mirror of
https://github.com/actions/download-artifact.git
synced 2025-07-26 08:28:28 +02:00
Update index.js
This commit is contained in:
parent
feed6afd79
commit
fa8104e19f
1 changed files with 4 additions and 4 deletions
8
dist/index.js
vendored
8
dist/index.js
vendored
|
@ -6567,8 +6567,6 @@ class DownloadHttpClient {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
yield new Promise((resolve, reject) => {
|
yield new Promise((resolve, reject) => {
|
||||||
if (isGzip) {
|
if (isGzip) {
|
||||||
core.info(`Called with ${izGzip}`);
|
|
||||||
core.info(`Called with ${JSON.stringify(response)}`);
|
|
||||||
const gunzip = zlib.createGunzip();
|
const gunzip = zlib.createGunzip();
|
||||||
response.message
|
response.message
|
||||||
.on('error', error => {
|
.on('error', error => {
|
||||||
|
@ -6585,6 +6583,8 @@ class DownloadHttpClient {
|
||||||
})
|
})
|
||||||
.pipe(destinationStream)
|
.pipe(destinationStream)
|
||||||
.on('close', () => {
|
.on('close', () => {
|
||||||
|
core.info(`Called with ${izGzip}`);
|
||||||
|
core.info(`Called with ${JSON.stringify(response)}`);
|
||||||
resolve();
|
resolve();
|
||||||
})
|
})
|
||||||
.on('error', error => {
|
.on('error', error => {
|
||||||
|
@ -6593,8 +6593,6 @@ class DownloadHttpClient {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.info(`Called with ${izGzip}`);
|
|
||||||
core.info(`Called with ${JSON.stringify(response)}`);
|
|
||||||
response.message
|
response.message
|
||||||
.on('error', error => {
|
.on('error', error => {
|
||||||
core.error(`An error occurred while attempting to read the response stream`);
|
core.error(`An error occurred while attempting to read the response stream`);
|
||||||
|
@ -6603,6 +6601,8 @@ class DownloadHttpClient {
|
||||||
})
|
})
|
||||||
.pipe(destinationStream)
|
.pipe(destinationStream)
|
||||||
.on('close', () => {
|
.on('close', () => {
|
||||||
|
core.info(`Called with ${izGzip}`);
|
||||||
|
core.info(`Called with ${JSON.stringify(response)}`);
|
||||||
resolve();
|
resolve();
|
||||||
})
|
})
|
||||||
.on('error', error => {
|
.on('error', error => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue