Signed-off-by: Anton Troshin <anton@diagrid.io>
This commit is contained in:
Anton Troshin 2024-11-18 19:24:46 -06:00
parent 28b19b8019
commit 0859a18f70
No known key found for this signature in database
GPG key ID: 9F8A96ACA9EB6363

View file

@ -222,6 +222,8 @@ async function cacheWindowsDir(
throw new Error(`Could not get cache folder paths.`); throw new Error(`Could not get cache folder paths.`);
} }
core.info(`Found Cache Directory Paths: ${cacheDirectoryPaths}`);
// replace cache directory path with actual cache directory path // replace cache directory path with actual cache directory path
const actualCacheDirectoryPaths = cacheDirectoryPaths.map(path => { const actualCacheDirectoryPaths = cacheDirectoryPaths.map(path => {
return { return {
@ -233,6 +235,7 @@ async function cacheWindowsDir(
// iterate through actual cache directory paths and make links // iterate through actual cache directory paths and make links
for (const cachePath of actualCacheDirectoryPaths) { for (const cachePath of actualCacheDirectoryPaths) {
if (!fs.existsSync(cachePath.actualPath)) { if (!fs.existsSync(cachePath.actualPath)) {
core.info(`Creating directory ${cachePath.actualPath}`);
fs.mkdirSync(path.dirname(cachePath.actualPath), {recursive: true}); fs.mkdirSync(path.dirname(cachePath.actualPath), {recursive: true});
} }