We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f228ab5 commit 4004f33Copy full SHA for 4004f33
1 file changed
src/cache.ts
@@ -93,13 +93,15 @@ async function computeCacheKey(
93
const pattern = cacheDependencyPath
94
? cacheDependencyPath.trim().split('\n')
95
: packageManager.pattern;
96
- const fileHash = await glob.hashFiles(pattern.join('\n'));
+ const fileHash = await glob.hashFiles(pattern.join('\n'), verbose = true);
97
if (!fileHash) {
98
throw new Error(
99
`No file in ${process.cwd()} matched to [${pattern}], make sure you have checked out the target repository`
100
);
101
}
102
- return `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${packageManager.id}-${fileHash}`;
+ let cacheKey: string = `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${packageManager.id}-${fileHash}`;
103
+ core.log(`cacheKey is ${cacheKey}`);
104
+ return cacheKey;
105
106
107
/**
0 commit comments