PR comments should not be posted by default

This commit is contained in:
Federico Builes
2024-02-20 17:54:34 +01:00
parent a1be843151
commit 11de043a62
+3 -3
View File
@@ -22,9 +22,9 @@ export async function commentPr(
core.setOutput('comment-content', commentContent)
if (
config.comment_summary_in_pr !== 'always' &&
config.comment_summary_in_pr === 'on-failure' &&
process.exitCode !== core.ExitCode.Failure
config.comment_summary_in_pr === 'always' ||
(config.comment_summary_in_pr === 'on-failure' &&
process.exitCode === core.ExitCode.Failure)
) {
return
}