Add task id to ActionContext
Signed-off-by: Fabio Vincenzi <fabio.vincenzi2001@gmail.com>
This commit is contained in:
@@ -372,6 +372,9 @@ export class NunjucksWorkflowRunner implements WorkflowRunner {
|
||||
|
||||
await action.handler({
|
||||
input: iteration.input,
|
||||
task: {
|
||||
id: await task.getWorkspaceName(),
|
||||
},
|
||||
secrets: task.secrets ?? {},
|
||||
// TODO(blam): move to LoggerService and away from Winston
|
||||
logger: loggerToWinstonLogger(taskLogger),
|
||||
|
||||
@@ -57,6 +57,13 @@ export type ActionContext<
|
||||
*/
|
||||
getInitiatorCredentials(): Promise<BackstageCredentials>;
|
||||
|
||||
/**
|
||||
* Optional task information
|
||||
*/
|
||||
task?: {
|
||||
id: string;
|
||||
};
|
||||
|
||||
templateInfo?: TemplateInfo;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user