mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-11-18 16:11:07 +08:00
Merge branch 'neo-cache-service' of github.com:actions/toolkit into neo-cache-service
This commit is contained in:
commit
3ca85474b8
4
packages/cache/src/cache.ts
vendored
4
packages/cache/src/cache.ts
vendored
@ -295,7 +295,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}`)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user