Bump action versions, fix tag step in release, regen js (#149)

* patch: bump assert-action to latest version

* patch: only attempt to move the major version tag if a new release published
This commit is contained in:
Nick Fields
2025-02-25 08:01:36 -05:00
committed by GitHub
parent 361088214a
commit 41b1e1aaef
2 changed files with 44 additions and 38 deletions

14
dist/index.js vendored
View File

@@ -25040,17 +25040,18 @@ function runAction(inputs) {
attempt = 1;
_a.label = 2;
case 2:
if (!(attempt <= inputs.max_attempts)) return [3 /*break*/, 13];
if (!(attempt <= inputs.max_attempts)) return [3 /*break*/, 14];
(0, core_1.info)("::group::Attempt ".concat(attempt));
_a.label = 3;
case 3:
_a.trys.push([3, 5, , 12]);
_a.trys.push([3, 5, 12, 13]);
// just keep overwriting attempts output
(0, core_1.setOutput)(OUTPUT_TOTAL_ATTEMPTS_KEY, attempt);
return [4 /*yield*/, runCmd(attempt, inputs)];
case 4:
_a.sent();
(0, core_1.info)("Command completed after ".concat(attempt, " attempt(s)."));
return [3 /*break*/, 13];
return [3 /*break*/, 14];
case 5:
error_2 = _a.sent();
if (!(attempt === inputs.max_attempts)) return [3 /*break*/, 6];
@@ -25076,11 +25077,14 @@ function runAction(inputs) {
(0, core_1.info)("Attempt ".concat(attempt, " failed. Reason: ").concat(error_2.message));
}
_a.label = 11;
case 11: return [3 /*break*/, 12];
case 11: return [3 /*break*/, 13];
case 12:
(0, core_1.info)("::endgroup::");
return [7 /*endfinally*/];
case 13:
attempt++;
return [3 /*break*/, 2];
case 13: return [2 /*return*/];
case 14: return [2 /*return*/];
}
});
});