Skip to content

Commit

Permalink
Merge branch 'test2' into test3
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Apr 8, 2024
2 parents 8619170 + b80cb81 commit 1cffcae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
allJobs = allJobs.concat(response.data.jobs);
console.log(allJobs);
if (response.data.jobs.length < perPage) {
console.log("break");
break; // No more jobs to fetch, exit the loop
}
Expand All @@ -114,7 +115,7 @@ jobs:
const jobs = await fetchAllJobs(context.repo.owner, context.repo.repo, process.env.WORKFLOW_RUN_ID);
//console.log(JSON.stringify(jobs.data.jobs, undefined, 2));
const job = jobs.data.jobs.find(job => job.name === JOB_NAME);
const job = jobs.find(job => job.name === JOB_NAME);
const JOB_ID = job ? job.id : null;
// Set default target URL if not defined
Expand Down

0 comments on commit 1cffcae

Please sign in to comment.