File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,13 @@ steps:
3737 }
3838 if ($env:FILTER) {
3939 ($env:FILTER -split ';') -join "`n" | Out-File __filelist.txt -Encoding utf8
40- $files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) -fl __filelist.txt $_ }
40+ $ec = $ files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) -fl __filelist.txt $_; $LASTEXITCODE }
4141 del __filelist.txt
4242 } else {
43- $files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) $_ }
43+ $ec = $ files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) $_; $LASTEXITCODE }
4444 }
45+ # Ensure we correctly fail the task if any signature failed
46+ $ec | ?{ $_ -ne 0 } | %{ exit $_ }
4547 displayName: 'Sign binaries'
4648 retryCountOnTaskFailure: 3
4749 workingDirectory: ${{ parameters.WorkingDir }}
You can’t perform that action at this time.
0 commit comments