diff --git a/.github/actions/cache/dist/restore/index.js b/.github/actions/cache/dist/restore/index.js index c5d194664c1463..055e74a08f67c5 100644 --- a/.github/actions/cache/dist/restore/index.js +++ b/.github/actions/cache/dist/restore/index.js @@ -33255,7 +33255,7 @@ async function calculateTotalSize(dir, files) { for (const file of files) { const filePath = path.join(dir, file) - const fileStats = await stat(filePath) + const fileStats = fs.statSync(filePath) if (fileStats.isFile()) { totalSize += fileStats.size diff --git a/.github/actions/cache/dist/save/index.js b/.github/actions/cache/dist/save/index.js index 075853165ed55f..bd689dafcb01b1 100644 --- a/.github/actions/cache/dist/save/index.js +++ b/.github/actions/cache/dist/save/index.js @@ -33203,11 +33203,11 @@ async function cleanUp() { for (let i = files.length - 1; i >= 0; i--) { var file = files[i] const filePath = path.join(directory, file) - const fileStats = await stat(filePath) + const fileStats = fs.statSync(filePath) if (fileStats.isFile() && fileStats.ctime < oneWeekAgo) { console.log(`Removing file: ${filePath}`) - await unlink(filePath) + fs.unlinkSync(filePath) totalSize -= fileStats.size } @@ -33287,7 +33287,7 @@ async function calculateTotalSize(dir, files) { for (const file of files) { const filePath = path.join(dir, file) - const fileStats = await stat(filePath) + const fileStats = fs.statSync(filePath) if (fileStats.isFile()) { totalSize += fileStats.size diff --git a/.github/actions/cache/src/saveImpl.js b/.github/actions/cache/src/saveImpl.js index 0954b37b8600a6..fba9607d0d87cb 100644 --- a/.github/actions/cache/src/saveImpl.js +++ b/.github/actions/cache/src/saveImpl.js @@ -87,11 +87,11 @@ async function cleanUp() { for (let i = files.length - 1; i >= 0; i--) { var file = files[i] const filePath = path.join(directory, file) - const fileStats = await stat(filePath) + const fileStats = fs.statSync(filePath) if (fileStats.isFile() && fileStats.ctime < oneWeekAgo) { console.log(`Removing file: ${filePath}`) - await unlink(filePath) + fs.unlinkSync(filePath) totalSize -= fileStats.size } diff --git a/.github/actions/cache/src/utils.js b/.github/actions/cache/src/utils.js index 784050f0e3839e..e8b752ccb00e0c 100644 --- a/.github/actions/cache/src/utils.js +++ b/.github/actions/cache/src/utils.js @@ -46,7 +46,7 @@ async function calculateTotalSize(dir, files) { for (const file of files) { const filePath = path.join(dir, file) - const fileStats = await stat(filePath) + const fileStats = fs.statSync(filePath) if (fileStats.isFile()) { totalSize += fileStats.size