Skip to content

Commit 657e27b

Browse files
committed
Only do WSL update command on windows-2022 runner image
1 parent c19a8f3 commit 657e27b

File tree

1 file changed

+1
-1
lines changed
  • src/jsMain/kotlin/net/kautler/github/action/setup_wsl

1 file changed

+1
-1
lines changed

src/jsMain/kotlin/net/kautler/github/action/setup_wsl/SetupWsl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ suspend fun installDistribution() {
392392
wslArguments = arrayOf("--set-default-version", "${wslVersion()}")
393393
)
394394

395-
if (wslVersion() != 1u) {
395+
if ((wslVersion() != 1u) && (process.env["RUNNER_NAME"] == "windows-2022")) {
396396
retry(10) {
397397
executeWslCommand(
398398
wslArguments = arrayOf("--update")

0 commit comments

Comments
 (0)