Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2024-06-16 11:45:48 +02:00
committed by blam
parent c1ce175011
commit e27d30c99c
@@ -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);
}
}