Skip to content

Commit

Permalink
Merge pull request #6861 from mook-as/ci/win32/setup-environment
Browse files Browse the repository at this point in the history
CI: Fix retrying `wsl --update`
  • Loading branch information
jandubois authored May 9, 2024
2 parents f60c1c9 + e1f679c commit 8c96a9d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/actions/setup-environment/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@ runs:
# Sometimes this results in a HTTP 403 for some reason; in that case, we
# need to retry.
do {
try {
wsl --update
break
} catch [Exception] {
Write-Host $_.Exception.Message
}
} while ($true)
wsl --update
} while ( -not $? )
- name: "Windows: Finish setting up WSL"
if: runner.os == 'Windows'
Expand Down

0 comments on commit 8c96a9d

Please sign in to comment.