Skip to content

Commit

Permalink
CI: Fix retrying wsl --update
Browse files Browse the repository at this point in the history
The previous try/catch didn't seem to actually work; fix it to use exit
status instead.

Signed-off-by: Mark Yen <[email protected]>
  • Loading branch information
mook-as committed May 9, 2024
1 parent f60c1c9 commit e1f679c
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 e1f679c

Please sign in to comment.