mirror of
https://github.com/actions/toolkit.git
synced 2026-08-07 00:00:18 +02:00
Add check to make sure archive has been created already
Co-authored-by: Josh Gross <[email protected]>
This commit is contained in:
co-authored by
Josh Gross
parent
555b03f6fd
commit
68ab87caa2
Vendored
+3
-1
@@ -296,7 +296,9 @@ async function restoreCachev2(
|
||||
throw new Error(`Failed to restore: ${error.message}`)
|
||||
} finally {
|
||||
try {
|
||||
await utils.unlinkFile(archivePath)
|
||||
if (archivePath) {
|
||||
await utils.unlinkFile(archivePath)
|
||||
}
|
||||
} catch (error) {
|
||||
core.debug(`Failed to delete archive: ${error}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user