Skip to content

Commit 8de1c87

Browse files
committed
Fix loss of output
1 parent f8dfce6 commit 8de1c87

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

windows-release/sign-files.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ steps:
3737
}
3838
if ($env:FILTER) {
3939
($env:FILTER -split ';') -join "`n" | Out-File __filelist.txt -Encoding utf8
40-
$ec = $files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) -fl __filelist.txt $_; $LASTEXITCODE }
41-
del __filelist.txt
4240
} else {
43-
$ec = $files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) $_; $LASTEXITCODE }
41+
"*" | Out-File __filelist.txt -Encoding utf8
4442
}
45-
# Ensure we correctly fail the task if any signature failed
46-
$ec | ?{ $_ -ne 0 } | %{ exit $_ }
43+
foreach ($f in $files) {
44+
& $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) -fl __filelist.txt $_
45+
if (-not $?) { exit $LASTEXITCODE }
46+
}
47+
del __filelist.txt
4748
displayName: 'Sign binaries'
4849
retryCountOnTaskFailure: 3
4950
workingDirectory: ${{ parameters.WorkingDir }}

0 commit comments

Comments
 (0)