mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-02 10:23:20 +08: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