mirror of
https://github.com/actions/setup-node.git
synced 2025-06-28 21:53:48 +00:00
fix: use process.env.RUNNER_OS instead of os.platform()
This commit is contained in:
parent
9c006494f6
commit
2db60599dd
3 changed files with 6 additions and 6 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -92567,7 +92567,7 @@ const restoreCache = (packageManager, cacheDependencyPath) => __awaiter(void 0,
|
|||
if (!packageManagerInfo) {
|
||||
throw new Error(`Caching for '${packageManager}' is not supported`);
|
||||
}
|
||||
const platform = os_1.default.platform();
|
||||
const platform = process.env.RUNNER_OS;
|
||||
const arch = os_1.default.arch();
|
||||
const cachePaths = yield (0, cache_utils_1.getCacheDirectories)(packageManagerInfo, cacheDependencyPath);
|
||||
core.saveState(constants_1.State.CachePaths, cachePaths);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue