Skip to content

Commit

Permalink
bump 11
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Dec 21, 2023
1 parent fcfb8a4 commit 5edf68e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/manage-integration-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ jobs:
check_name: "integration-test-result",
})
core.debug(`integration-test-result check runs: ${JSON.stringify(runs, null, 2)}`);
const checkId = runs.sort((a, b) => Date.parse(b.started_at) - Date.parse(a.started_at))[0];
const descRuns = runs.sort((a, b) => Date.parse(b.started_at) - Date.parse(a.started_at));
const latestRun = descRuns[0];
if (!checkId) {
if (!latestRun) {
core.setFailed(`No integration-test-result check found for commit ${head_sha}`);
return;
}
await github.rest.checks.update({
...context.repo,
check_run_id: checkId,
check_run_id: latestRun.id,
status: "completed",
conclusion: context.payload.workflow_run.conclusion,
});

0 comments on commit 5edf68e

Please sign in to comment.