@@ -443,7 +443,6 @@ export class NunjucksWorkflowRunner implements WorkflowRunner {
|
||||
throw new Error(`Step ${step.name} has been cancelled.`);
|
||||
}
|
||||
|
||||
await task.cleanWorkspace?.();
|
||||
await stepTrack.markSuccessful();
|
||||
} catch (err) {
|
||||
await taskTrack.markFailed(step, err);
|
||||
@@ -513,6 +512,7 @@ export class NunjucksWorkflowRunner implements WorkflowRunner {
|
||||
return { output };
|
||||
} finally {
|
||||
if (workspacePath) {
|
||||
await task.cleanWorkspace?.();
|
||||
await fs.remove(workspacePath);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user