@@ -50144,7 +50144,7 @@ const core = __importStar(__nccwpck_require__(7484));
5014450144const client_cloudformation_1 = __nccwpck_require__(3805);
5014550145function waitUntilStackOperationComplete(params, input) {
5014650146 return __awaiter(this, void 0, void 0, function* () {
50147- var _a, _b, _c ;
50147+ var _a, _b;
5014850148 const { client, maxWaitTime, minDelay, changeSetId } = params;
5014950149 const startTime = Date.now();
5015050150 while (Date.now() - startTime < maxWaitTime * 1000) {
@@ -50179,16 +50179,12 @@ function waitUntilStackOperationComplete(params, input) {
5017950179 try {
5018050180 core.info(`Attempting to get failure details for change set: ${changeSetId}`);
5018150181 const events = yield client.send(new client_cloudformation_1.DescribeEventsCommand({
50182- ChangeSetName: changeSetId,
50183- Filters: { FailedEvents: true }
50182+ ChangeSetName: changeSetId
5018450183 }));
50185- core.info(`Retrieved ${((_b = events.OperationEvents) === null || _b === void 0 ? void 0 : _b.length) || 0} failed events`);
50186- const failedEvents = (_c = events.OperationEvents) === null || _c === void 0 ? void 0 : _c.filter(event => event.ResourceStatusReason);
50187- if (failedEvents && failedEvents.length > 0) {
50188- const reasons = failedEvents
50189- .map(event => `${event.LogicalResourceId}: ${event.ResourceStatusReason}`)
50190- .join('; ');
50191- failureReason += `. Failed resources: ${reasons}`;
50184+ core.info(`Retrieved ${((_b = events.OperationEvents) === null || _b === void 0 ? void 0 : _b.length) || 0} events`);
50185+ // Log all events to see their structure
50186+ if (events.OperationEvents && events.OperationEvents.length > 0) {
50187+ core.info(`Events: ${JSON.stringify(events.OperationEvents, null, 2)}`);
5019250188 }
5019350189 }
5019450190 catch (error) {
0 commit comments