Skip to content

Commit

Permalink
ci(label): rerequest check run after cancelling
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Aug 16, 2023
1 parent 65a5fac commit b31eecb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,17 @@ jobs:
if (run.conclusion !== "skipped") continue;
if (linux && run.name === "build") {
const r = await github.rest.checks.update({
await github.rest.checks.update({
owner,
repo,
check_run_id: run.id,
conclusion: "cancelled",
});
console.log(r);
await github.rest.checks.rerequestRun({
owner,
repo,
check_run_id: run.id,
});
}
}

0 comments on commit b31eecb

Please sign in to comment.