Update writing-custom-actions.md

Signed-off-by: Piotr Piątkiewicz <piatkiewicz.piotr@gmail.com>
This commit is contained in:
Piotr Piątkiewicz
2024-07-16 15:17:07 +02:00
committed by GitHub
parent 0e8d7f64df
commit 392b26a0ed
@@ -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.