mirror of https://github.com/actions/toolkit
Formatting changes
parent
9aecf41d21
commit
b9fefecf57
|
@ -158,11 +158,10 @@ export async function saveCache(
|
||||||
core.debug('Cache Paths:')
|
core.debug('Cache Paths:')
|
||||||
core.debug(`${JSON.stringify(cachePaths)}`)
|
core.debug(`${JSON.stringify(cachePaths)}`)
|
||||||
|
|
||||||
|
if (cachePaths.length === 0) {
|
||||||
if(cachePaths.length === 0){
|
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Path Validation Error: Path(s) specified in the action do not exist, hence no cache is being saved.`
|
`Path Validation Error: Path(s) specified in the action do not exist, hence no cache is being saved.`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const archiveFolder = await utils.createTempDirectory()
|
const archiveFolder = await utils.createTempDirectory()
|
||||||
|
|
Loading…
Reference in New Issue