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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user