mirror of
https://github.com/actions/toolkit
synced 2025-05-09 16:43:02 +00:00
Add check to make sure archive has been created already
Co-authored-by: Josh Gross <joshmgross@github.com>
This commit is contained in:
parent
555b03f6fd
commit
68ab87caa2
1 changed files with 3 additions and 1 deletions
2
packages/cache/src/cache.ts
vendored
2
packages/cache/src/cache.ts
vendored
|
@ -296,7 +296,9 @@ async function restoreCachev2(
|
|||
throw new Error(`Failed to restore: ${error.message}`)
|
||||
} finally {
|
||||
try {
|
||||
if (archivePath) {
|
||||
await utils.unlinkFile(archivePath)
|
||||
}
|
||||
} catch (error) {
|
||||
core.debug(`Failed to delete archive: ${error}`)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue