mirror of
https://code.forgejo.org/actions/setup-go.git
synced 2024-12-25 22:42:22 -05:00
add logs
Signed-off-by: Anton Troshin <anton@diagrid.io>
This commit is contained in:
parent
28b19b8019
commit
0859a18f70
1 changed files with 3 additions and 0 deletions
|
@ -222,6 +222,8 @@ async function cacheWindowsDir(
|
|||
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
|
||||
const actualCacheDirectoryPaths = cacheDirectoryPaths.map(path => {
|
||||
return {
|
||||
|
@ -233,6 +235,7 @@ async function cacheWindowsDir(
|
|||
// iterate through actual cache directory paths and make links
|
||||
for (const cachePath of actualCacheDirectoryPaths) {
|
||||
if (!fs.existsSync(cachePath.actualPath)) {
|
||||
core.info(`Creating directory ${cachePath.actualPath}`);
|
||||
fs.mkdirSync(path.dirname(cachePath.actualPath), {recursive: true});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue