From 96a8d65dbafbc7d145a9b2b6c3b12ee335738cd2 Mon Sep 17 00:00:00 2001 From: Gunnar Lilleaasen Date: Tue, 17 Sep 2024 17:45:02 +0200 Subject: [PATCH] Only run macOsWorkaround() on macOS (#206) --- dist/save/index.js | 4 +++- src/save.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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) {