Skip to content

Commit

Permalink
fix: incorrect logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- committed Sep 26, 2024
1 parent 446bb1d commit 3003423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,15 @@ export async function getWorkflowRunJobSteps(runId: number): Promise<string[]> {
"Fetched Workflow Run Job Steps:\n" +
` Repository: ${config.owner}/${config.repo}\n` +
` Workflow Run ID: ${runId}\n` +
` Jobs Fetched: [${jobs.map((job) => job.id).join(", ")}]` +
` Jobs Fetched: [${jobs.map((job) => job.id).join(", ")}]\n` +
` Steps Fetched: [${steps.join(", ")}]`,
);

return steps;
} catch (error) {
if (error instanceof Error) {
core.error(
`getWorkflowRunJobs: An unexpected error has occurred: ${error.message}`,
`getWorkflowRunJobSteps: An unexpected error has occurred: ${error.message}`,
);
core.debug(error.stack ?? "");
}
Expand Down

0 comments on commit 3003423

Please sign in to comment.