Skip to content

Commit

Permalink
Only run macOsWorkaround() on macOS (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
heksesang authored Sep 17, 2024
1 parent 9bdad04 commit 96a8d65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 3 additions & 1 deletion src/save.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 96a8d65

Please # to comment.