mirror of https://github.com/actions/toolkit
Adding check for cache paths' existence.
parent
1e0f6285e5
commit
da52b35800
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue