diff --git a/lib/init-action.js b/lib/init-action.js index e9afbeece..ac1f72ea5 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -110299,9 +110299,9 @@ async function run(startedAt) { enableFileCoverageInformation: fileCoverageResult.enabled, logger }); - if (config.languages.includes("swift" /* swift */) && process.platform === "linux") { + if (config.languages.includes("swift" /* swift */) && process.platform !== "darwin") { throw new ConfigurationError( - `Swift analysis on Ubuntu runner images is no longer supported. Please migrate to a macOS runner.` + `Swift analysis is only supported on macOS runner images. Please migrate to a macOS runner.` ); } if (repositoryPropertiesResult.isFailure()) { diff --git a/src/init-action.ts b/src/init-action.ts index fd24fa6f8..bc95304bf 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -391,10 +391,10 @@ async function run(startedAt: Date) { if ( config.languages.includes(KnownLanguage.swift) && - process.platform === "linux" + process.platform !== "darwin" ) { throw new ConfigurationError( - `Swift analysis on Ubuntu runner images is no longer supported. Please migrate to a macOS runner.`, + `Swift analysis is only supported on macOS runner images. Please migrate to a macOS runner.`, ); }