Merge pull request #25572 from CasperJ/master

Scaffolder action `catalog:write` incorrectly outputs a log message of `Writing catalog-info.yaml`
This commit is contained in:
Patrik Oldsberg
2024-07-12 09:36:48 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Updated `catalog:write` scaffolder action to show correct file path location in log message
@@ -49,10 +49,10 @@ export function createCatalogWriteAction() {
examples,
supportsDryRun: true,
async handler(ctx) {
ctx.logger.info(`Writing catalog-info.yaml`);
const { filePath, entity } = ctx.input;
const entityRef = ctx.templateInfo?.entityRef;
const path = filePath ?? 'catalog-info.yaml';
ctx.logger.info(`Writing ${path}`);
await fs.writeFile(
resolveSafeChildPath(ctx.workspacePath, path),