chore: pretty :nails:

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2025-01-28 09:55:42 +01:00
parent 203783ba48
commit 91af9682be
@@ -263,15 +263,18 @@ Idempotent action could be achieved via the usage of checkpoints.
Example:
```ts title="plugins/my-company-scaffolder-actions-plugin/src/vendor/my-custom-action.ts"
const res = await ctx.checkpoint?.({key: 'create.projects', fn: async () => {
const projectStgId = createStagingProjectId();
const projectProId = createProductionProjectId();
const res = await ctx.checkpoint?.({
key: 'create.projects',
fn: async () => {
const projectStgId = createStagingProjectId();
const projectProId = createProductionProjectId();
return {
projectStgId,
projectProId,
};
}});
return {
projectStgId,
projectProId,
};
},
});
```
You have to define the unique key in scope of the scaffolder task for your checkpoint. During the execution task engine