mirror of https://github.com/actions/toolkit
Try close stream before unlink
parent
d4e990d92f
commit
a600dd34a5
|
@ -223,6 +223,7 @@ export class DownloadHttpClient {
|
|||
const resetDestinationStream = async (
|
||||
fileDownloadPath: string
|
||||
): Promise<void> => {
|
||||
destinationStream.close()
|
||||
await rmFile(fileDownloadPath)
|
||||
destinationStream = fs.createWriteStream(fileDownloadPath)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue