mirror of
https://github.com/actions/download-artifact.git
synced 2024-11-24 01:50:55 -05:00
more patches
This commit is contained in:
parent
621be0be95
commit
d2e17e8b67
1 changed files with 6 additions and 1 deletions
7
dist/index.js
vendored
7
dist/index.js
vendored
|
@ -7864,7 +7864,12 @@ function streamExtract(url, directory) {
|
||||||
if (response.message.statusCode !== 200) {
|
if (response.message.statusCode !== 200) {
|
||||||
throw new Error(`Unexpected HTTP response from blob storage: ${response.message.statusCode} ${response.message.statusMessage}`);
|
throw new Error(`Unexpected HTTP response from blob storage: ${response.message.statusCode} ${response.message.statusMessage}`);
|
||||||
}
|
}
|
||||||
return response.message.pipe(unzip_stream_1.default.Extract({ path: directory })).promise();
|
return new Promise((resolve, reject) => {
|
||||||
|
response.message
|
||||||
|
.pipe(unzip_stream_1.default.Extract({ path: directory }))
|
||||||
|
.on('close', resolve)
|
||||||
|
.on('error', reject);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function downloadArtifactPublic(artifactId, repositoryOwner, repositoryName, token, options) {
|
function downloadArtifactPublic(artifactId, repositoryOwner, repositoryName, token, options) {
|
||||||
|
|
Loading…
Reference in a new issue