From 813e1d2ebd132cbd07e4eb260fc93f98b3a77eb9 Mon Sep 17 00:00:00 2001 From: clearloop <26088946+clearloop@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:39:34 +0400 Subject: [PATCH] ci(label): avoid netural conclusion --- .github/actions/label/index.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/actions/label/index.js b/.github/actions/label/index.js index 63d86024bc5..90dc8801a05 100644 --- a/.github/actions/label/index.js +++ b/.github/actions/label/index.js @@ -140,22 +140,25 @@ module.exports = async ({ github, core }) => { ); let { status, conclusion } = job; - if (!conclusion) conclusion = "neutral"; - await github.rest.checks.update({ + let data = { owner, repo, check_run_id: checkJob.id, status, - conclusion, output: { title: `Build ${job.name}`, summary: `ref ${job.html_url}`, }, - }); + }; - labelChecks[job.name].status = job.status; - labelChecks[job.name].conclusion = job.conclusion; + labelChecks[job.name].status = status; + if (conclusion) { + data.conclusion = conclusion; + labelChecks[job.name].conclusion = conclusion; + } + + await github.rest.checks.update(data); } else { continue; }