We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a87a88e commit f4cd646Copy full SHA for f4cd646
src/jsMain/kotlin/net/kautler/github/action/setup_wsl/SetupWsl.kt
@@ -392,7 +392,7 @@ suspend fun installDistribution() {
392
wslArguments = arrayOf("--set-default-version", "${wslVersion()}")
393
)
394
395
- if (wslVersion() != 1u) {
+ if ((wslVersion() != 1u) && (process.env["ImageOS"] == "win22") && (process.env["RUNNER_ENVIRONMENT"] == "github-hosted")) {
396
retry(10) {
397
executeWslCommand(
398
wslArguments = arrayOf("--update")
0 commit comments