Adding check for cache paths' existence.

This commit is contained in:
Sankalp Kotewar authored and GitHub committed 2022-05-22 10:09:13 +00:00
1 parent 4ce776031b
commit 9a602d2d82
1 file changed
+6
+6
View File
@@ -158,6 +158,12 @@ export async function saveCache(
core.debug('Cache Paths:')
core.debug(`${JSON.stringify(cachePaths)}`)
if(cachePaths.length === 0){
throw new ValidationError(
`Path Validation Error: Path(s) specified in the action do not exist, hence no cache is being saved.`)
}
const archiveFolder = await utils.createTempDirectory()
const archivePath = path.join(
archiveFolder,