1
0
Fork 0

Merge branch 'neo-cache-service' of github.com:actions/toolkit into neo-cache-service

pull/1857/head
Bassem Dghaidi 2024-11-14 06:50:01 -08:00 committed by GitHub
commit 3ca85474b8
1 changed files with 3 additions and 1 deletions

View File

@ -295,7 +295,9 @@ async function restoreCachev2(
throw new Error(`Failed to restore: ${error.message}`) throw new Error(`Failed to restore: ${error.message}`)
} finally { } finally {
try { try {
await utils.unlinkFile(archivePath) if (archivePath) {
await utils.unlinkFile(archivePath)
}
} catch (error) { } catch (error) {
core.debug(`Failed to delete archive: ${error}`) core.debug(`Failed to delete archive: ${error}`)
} }