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