fix: change from using env to os module

This commit is contained in:
Peng Xiao
2023-12-26 17:11:46 +08:00
parent 2c3ea16a59
commit 8454a14c98
3 changed files with 14 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ export const restoreCache = async (
if (!packageManagerInfo) {
throw new Error(`Caching for '${packageManager}' is not supported`);
}
const platform = process.env.RUNNER_OS;
const platform = os.platform();
const arch = os.arch();
const cachePaths = await getCacheDirectories(