ci: Fix paths with spaces for Windows compatibility (#21017)

This commit is contained in:
Declan Carroll
2025-10-22 07:17:43 +01:00
committed by GitHub
parent b2e0f8cdc0
commit 8d65ed542f
+2 -2
View File
@@ -34,7 +34,7 @@ function generateUserManagementEmailTemplates() {
if (template.startsWith('_')) return;
const source = path.resolve(sourceDir, template);
const destination = path.resolve(destinationDir, template.replace(/\.mjml$/, '.handlebars'));
const command = `pnpm mjml --output ${destination} ${source}`;
const command = `pnpm mjml --output "${destination}" "${source}"`;
shell.exec(command, { silent: false });
});
@@ -68,7 +68,7 @@ function bundleOpenApiSpecs() {
}, [])
.forEach((specPath) => {
const distSpecPath = path.resolve(ROOT_DIR, 'dist', specPath);
const command = `pnpm openapi bundle src/${specPath} --output ${distSpecPath}`;
const command = `pnpm openapi bundle "src/${specPath}" --output "${distSpecPath}"`;
shell.exec(command, { silent: true });
});