make task not optional in ActionContext
Signed-off-by: Fabio Vincenzi <fabio.vincenzi2001@gmail.com>
This commit is contained in:
@@ -493,6 +493,7 @@ export class NunjucksWorkflowRunner implements WorkflowRunner {
|
||||
|
||||
const taskTrack = await this.tracker.taskStart(task);
|
||||
await fs.ensureDir(workspacePath);
|
||||
|
||||
const context: TemplateContext = {
|
||||
parameters: task.spec.parameters,
|
||||
steps: {},
|
||||
|
||||
@@ -58,9 +58,9 @@ export type ActionContext<
|
||||
getInitiatorCredentials(): Promise<BackstageCredentials>;
|
||||
|
||||
/**
|
||||
* Optional task information
|
||||
* Task information
|
||||
*/
|
||||
task?: {
|
||||
task: {
|
||||
id: string;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user