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; }