diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index bb4aedac..7177ef81 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -35066,7 +35066,7 @@ class CacheDistributor { const resolvePath = currentValue.includes('~') ? path.join(currentValue.slice(1), os.homedir()) : currentValue; - return previousValue || fs.existsSync(currentValue); + return previousValue || fs.existsSync(resolvePath); }, false); return result; } diff --git a/dist/setup/index.js b/dist/setup/index.js index 779b1835..295d10a6 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -36835,7 +36835,7 @@ class CacheDistributor { const resolvePath = currentValue.includes('~') ? path.join(currentValue.slice(1), os.homedir()) : currentValue; - return previousValue || fs.existsSync(currentValue); + return previousValue || fs.existsSync(resolvePath); }, false); return result; } diff --git a/src/cache-distributions/cache-distributor.ts b/src/cache-distributions/cache-distributor.ts index de22ad59..e9b4c2e4 100644 --- a/src/cache-distributions/cache-distributor.ts +++ b/src/cache-distributions/cache-distributor.ts @@ -42,7 +42,7 @@ abstract class CacheDistributor { const resolvePath = currentValue.includes('~') ? path.join(currentValue.slice(1), os.homedir()) : currentValue; - return previousValue || fs.existsSync(currentValue); + return previousValue || fs.existsSync(resolvePath); }, false); return result;