mirror of
https://gitea.com/actions/setup-node.git
synced 2025-12-14 20:51:39 +08:00
fix: change from using env to os module
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user