mirror of
https://github.com/actions/toolkit.git
synced 2026-08-15 00:00:25 +02:00
Retry artifact download when response stream is truncated
This commit is contained in:
@@ -264,6 +264,12 @@ export class DownloadHttpClient {
|
||||
const gunzip = zlib.createGunzip()
|
||||
response.message
|
||||
.pipe(gunzip)
|
||||
.on('error', error => {
|
||||
core.error(
|
||||
`An error has been encountered while attempting to decompress a file`
|
||||
)
|
||||
reject(error)
|
||||
})
|
||||
.pipe(destinationStream)
|
||||
.on('close', () => {
|
||||
resolve()
|
||||
|
||||
Reference in New Issue
Block a user