@@ -28877,9 +28877,9 @@ exports.NEVER = parseUtil_1.INVALID;
28877
28877
Object.defineProperty(exports, "__esModule", ({ value: true }));
28878
28878
exports.runAtmosDescribeComponent = void 0;
28879
28879
const node_child_process_1 = __nccwpck_require__(7718);
28880
- const runAtmosDescribeComponent = async (component, stack, cwd) => {
28880
+ const runAtmosDescribeComponent = async (component, stack, processTemplates, cwd) => {
28881
28881
const options = cwd ? { cwd } : {};
28882
- const command = `atmos describe component ${component} -s ${stack} --format=json`;
28882
+ const command = `atmos describe component ${component} -s ${stack} --format=json --process-templates=${String(processTemplates)} `;
28883
28883
const atmos = (0, node_child_process_1.execSync)(command, options);
28884
28884
return atmos.toString();
28885
28885
};
@@ -28944,8 +28944,8 @@ exports.SettingInput = zod_1.z.object({
28944
28944
outputPath: zod_1.z.string().trim().min(1)
28945
28945
});
28946
28946
exports.SettingsInput = zod_1.z.array(exports.SettingInput).min(1);
28947
- const getSetting = async (component, stack, settingsPath) => {
28948
- const cmdOutput = await (0, atmos_1.runAtmosDescribeComponent)(component, stack);
28947
+ const getSetting = async (component, stack, settingsPath, processTemplates ) => {
28948
+ const cmdOutput = await (0, atmos_1.runAtmosDescribeComponent)(component, stack, processTemplates );
28949
28949
const json = JSON.parse(cmdOutput);
28950
28950
return (0, exports.getNestedValue)(json, settingsPath);
28951
28951
};
@@ -28987,8 +28987,9 @@ const core = __importStar(__nccwpck_require__(2186));
28987
28987
const _useCase_1 = __nccwpck_require__(9264);
28988
28988
(async () => {
28989
28989
try {
28990
- const singleResult = await (0, _useCase_1.processSingleSetting)();
28991
- const multipleResult = await (0, _useCase_1.processMultipleSettings)();
28990
+ const processTemplates = core.getBooleanInput("process-templates");
28991
+ const singleResult = await (0, _useCase_1.processSingleSetting)(processTemplates);
28992
+ const multipleResult = await (0, _useCase_1.processMultipleSettings)(processTemplates);
28992
28993
if (singleResult || multipleResult) {
28993
28994
core.info("result returned successfully");
28994
28995
}
@@ -29065,7 +29066,7 @@ exports.processMultipleSettings = void 0;
29065
29066
const core = __importStar(__nccwpck_require__(2186));
29066
29067
const _lib_1 = __nccwpck_require__(6791);
29067
29068
const YAML = __importStar(__nccwpck_require__(4083));
29068
- const processMultipleSettings = async () => {
29069
+ const processMultipleSettings = async (processTemplates ) => {
29069
29070
const settingsInput = core.getInput("settings");
29070
29071
if (settingsInput) {
29071
29072
const yaml = YAML.parse(settingsInput);
@@ -29075,7 +29076,7 @@ const processMultipleSettings = async () => {
29075
29076
const output = await settings.reduce(async (accPromise, item) => {
29076
29077
const acc = await accPromise;
29077
29078
const { outputPath, ...rest } = item;
29078
- const result = await (0, _lib_1.getSetting)(item.component, item.stack, item.settingsPath);
29079
+ const result = await (0, _lib_1.getSetting)(item.component, item.stack, item.settingsPath, processTemplates );
29079
29080
return { ...acc, [outputPath]: result };
29080
29081
}, Promise.resolve({}));
29081
29082
core.setOutput("settings", JSON.stringify(output));
@@ -29121,7 +29122,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
29121
29122
exports.processSingleSetting = void 0;
29122
29123
const core = __importStar(__nccwpck_require__(2186));
29123
29124
const _lib_1 = __nccwpck_require__(6791);
29124
- const processSingleSetting = async () => {
29125
+ const processSingleSetting = async (processTemplates ) => {
29125
29126
const component = core.getInput("component");
29126
29127
const stack = core.getInput("stack");
29127
29128
const settingsPath = core.getInput("settings-path");
@@ -29132,7 +29133,7 @@ const processSingleSetting = async () => {
29132
29133
};
29133
29134
const parseResult = _lib_1.SingleSettingInput.safeParse(singleSetting);
29134
29135
if (parseResult.success) {
29135
- const value = await (0, _lib_1.getSetting)(parseResult.data.component, parseResult.data.stack, parseResult.data["settings-path"]);
29136
+ const value = await (0, _lib_1.getSetting)(parseResult.data.component, parseResult.data.stack, parseResult.data["settings-path"], processTemplates );
29136
29137
core.setOutput("value", value);
29137
29138
return true;
29138
29139
}
0 commit comments