Skip to content

Commit

Permalink
Update manage-integration-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
frazarshad authored Aug 1, 2024
1 parent 4de46a6 commit 64d67db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/manage-integration-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
core.debug(`integration-test-result check runs: ${JSON.stringify(runs, null, 2)}`);
const filtRuns = runs.filter(run => run.external_id === external_id);
const descRuns = filtRuns.sort((a, b) => Date.parse(b.started_at) - Date.parse(a.started_at));
console.log(JSON.stringify(runs, null, 2));
console.log(JSON.stringify(filtRuns, null, 2));
const run = descRuns[0];
if (run) {
// Check already exists.
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
const filtRuns = runs.filter(run => run.status !== 'completed' && run.external_id === external_id);
const descRuns = filtRuns.sort((a, b) => Date.parse(b.started_at) - Date.parse(a.started_at));
console.log(context.payload.workflow_run.rerun_url, context.payload.workflow_run.run_attempt, context.payload.workflow_run.run_number);
console.log(JSON.stringify(runs, null, 2));
console.log(JSON.stringify(filtRuns, null, 2));
const run = descRuns[0];
if (!run) {
const check = await github.rest.checks.create({
Expand Down

0 comments on commit 64d67db

Please sign in to comment.