Skip to content

Commit 1dccbec

Browse files
committed
update
1 parent 509f823 commit 1dccbec

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/index.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,15 @@ for (const file of readdirRecursively(".")) {
5555
const firstLine = compilation_output.split("\n")[0];
5656
if (firstLine.startsWith(prefix)) {
5757
const { run_id } = JSON.parse(firstLine.substring(prefix.length));
58-
const { data: jobs } = await octokit.rest.actions.listJobsForWorkflowRun({
59-
owner,
60-
repo,
61-
run_id,
62-
});
58+
const { data: jobList } =
59+
await octokit.rest.actions.listJobsForWorkflowRun({
60+
owner,
61+
repo,
62+
run_id,
63+
});
6364
console.log(
6465
"jobs: ",
65-
jobs.jobs.map((job) => job.html_url)
66+
jobList.jobs.map((job) => job.name)
6667
);
6768
}
6869

0 commit comments

Comments
 (0)