Skip to content

Commit

Permalink
ci(label): avoid netural conclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Aug 17, 2023
1 parent 907eb02 commit 813e1d2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/actions/label/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 813e1d2

Please sign in to comment.