diff --git a/dist/save/index.js b/dist/save/index.js index a26db52..f50bde9 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -88832,7 +88832,9 @@ async function run() { config.printInfo(cacheProvider); core.info(""); // TODO: remove this once https://github.com/actions/toolkit/pull/553 lands - await macOsWorkaround(); + if (process.env["RUNNER_OS"] == "macOS") { + await macOsWorkaround(); + } const allPackages = []; for (const workspace of config.workspaces) { const packages = await workspace.getPackagesOutsideWorkspaceRoot(); diff --git a/src/save.ts b/src/save.ts index 4a4f156..ed338bb 100644 --- a/src/save.ts +++ b/src/save.ts @@ -32,7 +32,9 @@ async function run() { core.info(""); // TODO: remove this once https://github.com/actions/toolkit/pull/553 lands - await macOsWorkaround(); + if (process.env["RUNNER_OS"] == "macOS") { + await macOsWorkaround(); + } const allPackages = []; for (const workspace of config.workspaces) {