Excluding the fix from this PR

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2024-07-02 09:08:29 +02:00
parent 74199ac0d0
commit b29b39302c
2 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/plugin-scaffolder-backend': patch
---
Added a documentation how to use checkpoints + the fix when to clean the workspace
Added a documentation how to use checkpoints
@@ -508,11 +508,11 @@ export class NunjucksWorkflowRunner implements WorkflowRunner {
const output = this.render(task.spec.output, context, renderTemplate);
await taskTrack.markSuccessful();
await task.cleanWorkspace?.();
return { output };
} finally {
if (workspacePath) {
await task.cleanWorkspace?.();
await fs.remove(workspacePath);
}
}
@@ -554,13 +554,10 @@ function scaffoldingTracker() {
step: TaskStep,
action: TemplateAction<JsonObject>,
) {
await task.emitLog(
`Skipping because ${action.id} does not support dry-run`,
{
stepId: step.id,
status: 'skipped',
},
);
task.emitLog(`Skipping because ${action.id} does not support dry-run`, {
stepId: step.id,
status: 'skipped',
});
}
async function markSuccessful() {