Skip to content

Commit db4ffac

Browse files
authored
Update action.yml
Use an explicit `&` to indicate `Invoke-Command` in the hopes that it will capture `LASTEXITCODE` properly.
1 parent 5a97613 commit db4ffac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ runs:
263263
264264
$ModuleDefinitions.GetEnumerator() | ForEach-Object {
265265
Write-Host "::notice::Updating $($_.Value.Destination)"
266-
curl.exe --fail --silent --show-error --retry 3 --retry-delay 5 --output "$($_.Value.Destination)" --location $_.Value.URL
266+
& curl.exe --fail --silent --show-error --retry 3 --retry-delay 5 --output "$($_.Value.Destination)" --location $_.Value.URL
267267
if ($LASTEXITCODE -ne 0) {
268268
Write-Host "::error::Failed to update $($_.Key)"
269269
exit 1

0 commit comments

Comments
 (0)