diff --git a/.github/actions/cache/dist/save/index.js b/.github/actions/cache/dist/save/index.js index 09cfaed3a8b762..6ba9f966788136 100644 --- a/.github/actions/cache/dist/save/index.js +++ b/.github/actions/cache/dist/save/index.js @@ -33202,7 +33202,7 @@ async function cleanUp() { ) for (let i = files.length - 1; i >= 0; i--) { var file = files[i] - const filePath = path.join(directory, file) + const filePath = path.join(cacheRemotePath, file) const fileStats = fs.statSync(filePath) if (fileStats.isFile() && fileStats.ctime < oneWeekAgo) { diff --git a/.github/actions/cache/src/saveImpl.js b/.github/actions/cache/src/saveImpl.js index 6b18a2a1eb48e7..c62167949257c2 100644 --- a/.github/actions/cache/src/saveImpl.js +++ b/.github/actions/cache/src/saveImpl.js @@ -86,7 +86,7 @@ async function cleanUp() { ) for (let i = files.length - 1; i >= 0; i--) { var file = files[i] - const filePath = path.join(directory, file) + const filePath = path.join(cacheRemotePath, file) const fileStats = fs.statSync(filePath) if (fileStats.isFile() && fileStats.ctime < oneWeekAgo) {