Fixed log message to output the correct file name being written to
Signed-off-by: CasperJ <c@sper.name>
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user