From 11de043a62382a7dbc91695326b27102aae00962 Mon Sep 17 00:00:00 2001 From: Federico Builes Date: Tue, 20 Feb 2024 17:54:34 +0100 Subject: [PATCH] PR comments should not be posted by default --- src/comment-pr.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/comment-pr.ts b/src/comment-pr.ts index b042dc6..a2fc38b 100644 --- a/src/comment-pr.ts +++ b/src/comment-pr.ts @@ -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 }