Skip to content

Commit

Permalink
Fail properly
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Nov 7, 2024
1 parent 01cfb1a commit f8dfce6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions windows-release/sign-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ steps:
}
if ($env:FILTER) {
($env:FILTER -split ';') -join "`n" | Out-File __filelist.txt -Encoding utf8
$files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) -fl __filelist.txt $_ }
$ec = $files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) -fl __filelist.txt $_; $LASTEXITCODE }
del __filelist.txt
} else {
$files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) $_ }
$ec = $files | %{ & $env:TRUSTED_SIGNING_CMD @(-split $env:TRUSTED_SIGNING_ARGS) $_; $LASTEXITCODE }
}
# Ensure we correctly fail the task if any signature failed
$ec | ?{ $_ -ne 0 } | %{ exit $_ }
displayName: 'Sign binaries'
retryCountOnTaskFailure: 3
workingDirectory: ${{ parameters.WorkingDir }}
Expand Down

0 comments on commit f8dfce6

Please sign in to comment.