From 15ec24088df7ca72a2a22a606f7c9216068fcc9d Mon Sep 17 00:00:00 2001 From: Michal Dorner Date: Wed, 30 Nov 2022 16:53:36 +0100 Subject: [PATCH] Update dist/index.js --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 19587c3..df75f07 100644 --- a/dist/index.js +++ b/dist/index.js @@ -392,7 +392,7 @@ class TestReporter { const summary = (0, get_report_1.getReport)(results, { listSuites, listTests, baseUrl, onlySummary }); core.info('Creating annotations'); const annotations = (0, get_annotations_1.getAnnotations)(results, this.maxAnnotations); - const isFailed = results.some(tr => tr.result === 'failed'); + const isFailed = this.failOnError && results.some(tr => tr.result === 'failed'); const conclusion = isFailed ? 'failure' : 'success'; const icon = isFailed ? markdown_utils_1.Icon.fail : markdown_utils_1.Icon.success; core.info(`Updating check run conclusion (${conclusion}) and output`);