From ba53a2152f47e776f6b7e054eba542733ede8e65 Mon Sep 17 00:00:00 2001 From: Gunnar Lilleaasen Date: Thu, 12 Sep 2024 09:43:39 +0200 Subject: [PATCH] Only run macOsWorkaround() on macOS. --- src/save.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {