@@ -25040,18 +25040,17 @@ function runAction(inputs) {
2504025040 attempt = 1;
2504125041 _a.label = 2;
2504225042 case 2:
25043- if (!(attempt <= inputs.max_attempts)) return [3 /*break*/, 14];
25044- (0, core_1.info)("::group::Attempt ".concat(attempt));
25043+ if (!(attempt <= inputs.max_attempts)) return [3 /*break*/, 13];
2504525044 _a.label = 3;
2504625045 case 3:
25047- _a.trys.push([3, 5, 12, 13 ]);
25046+ _a.trys.push([3, 5, , 12 ]);
2504825047 // just keep overwriting attempts output
2504925048 (0, core_1.setOutput)(OUTPUT_TOTAL_ATTEMPTS_KEY, attempt);
2505025049 return [4 /*yield*/, runCmd(attempt, inputs)];
2505125050 case 4:
2505225051 _a.sent();
2505325052 (0, core_1.info)("Command completed after ".concat(attempt, " attempt(s)."));
25054- return [3 /*break*/, 14 ];
25053+ return [3 /*break*/, 13 ];
2505525054 case 5:
2505625055 error_2 = _a.sent();
2505725056 if (!(attempt === inputs.max_attempts)) return [3 /*break*/, 6];
@@ -25077,14 +25076,11 @@ function runAction(inputs) {
2507725076 (0, core_1.info)("Attempt ".concat(attempt, " failed. Reason: ").concat(error_2.message));
2507825077 }
2507925078 _a.label = 11;
25080- case 11: return [3 /*break*/, 13 ];
25079+ case 11: return [3 /*break*/, 12 ];
2508125080 case 12:
25082- (0, core_1.info)("::endgroup::");
25083- return [7 /*endfinally*/];
25084- case 13:
2508525081 attempt++;
2508625082 return [3 /*break*/, 2];
25087- case 14 : return [2 /*return*/];
25083+ case 13 : return [2 /*return*/];
2508825084 }
2508925085 });
2509025086 });
@@ -27212,4 +27208,4 @@ module.exports = parseParams
2721227208/******/ module.exports = __webpack_exports__;
2721327209/******/
2721427210/******/ })()
27215- ;
27211+ ;
0 commit comments