Fixed log message to output the correct file name being written to

Signed-off-by: CasperJ <c@sper.name>
This commit is contained in:
CasperJ
2024-07-10 15:22:56 +02:00
parent 0eb075b85c
commit b9451dd573
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Catalog:Write scaffolder action shows incorrect 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),