Merge pull request #25647 from piatkiewicz/patch-1

Update writing-custom-actions.md
This commit is contained in:
Ben Lambert
2024-07-17 13:07:12 +02:00
committed by GitHub
@@ -195,7 +195,7 @@ const scaffolderModuleCustomExtensions = createBackendModule({
const backend = createBackend();
backend.add(import('@backstage/plugin-scaffolder-backend/alpha'));
/* highlight-add-next-line */
backend.add(scaffolderModuleCustomExtensions());
backend.add(scaffolderModuleCustomExtensions);
```
If your custom action requires core services such as `config` or `cache` they can be imported in the dependencies and passed to the custom action function.