Skip to content

Commit

Permalink
feat(cli): show job name
Browse files Browse the repository at this point in the history
  • Loading branch information
juanrgm committed Mar 26, 2024
1 parent 5cf1657 commit a1c98f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/cli/src/utils/datatruck/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export async function runJob(job: Job, name: string, config: JobConfig) {
...process.env,
COLUMNS: "160",
NO_COLOR: "1",
JOB_NAME: name,
},
},
);
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/datatruck/report-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function createReportListTasks<T extends ReportListTaskContext>(
} else if (isReportStep(report.run)) {
await runReportSteps(report.run, {
data: {
title: `[${options.hostname}] DTT ${options.action}`,
title: `[${options.hostname}] DTT ${process.env.JOB_NAME ?? options.action}`,
message,
success,
},
Expand Down

0 comments on commit a1c98f1

Please sign in to comment.