mirror of https://github.com/actions/toolkit
update error handling abort
parent
c119fcd773
commit
78ed49ff88
|
@ -50,10 +50,11 @@ async function streamExtract(url: string, directory: string): Promise<void> {
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
response.readableStreamBody
|
response.readableStreamBody
|
||||||
?.pipe(unzip.Extract({path: directory}))
|
?.on('error', reject)
|
||||||
.on('close', resolve)
|
|
||||||
.on('error', reject)
|
|
||||||
.on('aborted', reject)
|
.on('aborted', reject)
|
||||||
|
.pipe(unzip.Extract({path: directory}))
|
||||||
|
.on('error', reject)
|
||||||
|
.on('close', resolve)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue