Skip to content

Commit

Permalink
Fix exit code policy
Browse files Browse the repository at this point in the history
Aligning expectation that "all repos succeed" means there are no repos with failures.

This brings back the old behavior from RunResults:

    if (reposWithFailures.isEmpty) ExitCode.Success else ExitCode.Error

See:
6259adb...9d9460a
  • Loading branch information
esamson authored Jun 25, 2024
1 parent 9260423 commit 064fd2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ object ExitCodePolicy {

val SuccessIfAnyRepoSucceeds: ExitCodePolicy = successIf(_.successRepos.nonEmpty)

val SuccessOnlyIfAllReposSucceed: ExitCodePolicy = successIf(_.reposWithFailures.nonEmpty)
val SuccessOnlyIfAllReposSucceed: ExitCodePolicy = successIf(_.reposWithFailures.isEmpty)
}

0 comments on commit 064fd2e

Please sign in to comment.