mirror of
https://github.com/actions/download-artifact.git
synced 2024-11-25 23:05:29 +00:00
more patches
This commit is contained in:
parent
621be0be95
commit
d2e17e8b67
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 New Issue
Block a user