From 865bc7f61383adf2ea233c6538e6171b4c4afabc Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Thu, 26 Sep 2024 09:38:23 -0300 Subject: [PATCH] generate-blueprint: workaround issue --- .../.blueprint/github-build-matrix/generator.mjs.ejs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/generators/generate-blueprint/templates/.blueprint/github-build-matrix/generator.mjs.ejs b/generators/generate-blueprint/templates/.blueprint/github-build-matrix/generator.mjs.ejs index 7156e85aa79a..fd05e4b20bc1 100644 --- a/generators/generate-blueprint/templates/.blueprint/github-build-matrix/generator.mjs.ejs +++ b/generators/generate-blueprint/templates/.blueprint/github-build-matrix/generator.mjs.ejs @@ -14,8 +14,9 @@ export default class extends BaseGenerator { get [BaseGenerator.WRITING]() { return this.asWritingTaskGroup({ async buildMatrix() { - const samples = await getSamples(this.templatePath(`../../generate-sample/templates/${this.samplesFolder}`)); - const matrix = buildMatrix({ samples, samplesFolder: this.samplesFolder }); + const samplesFolder = this.samplesFolder ?? 'samples'; + const samples = await getSamples(this.templatePath(`../../generate-sample/templates/${samplesFolder}`)); + const matrix = buildMatrix({ samples, samplesFolder }); const matrixoutput = `matrix<