Merge branch 'master' into nf_retry_p1

This commit is contained in:
Nick Fields
2025-02-25 08:05:30 -05:00
committed by GitHub
2 changed files with 11 additions and 5 deletions

View File

@@ -584,6 +584,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Tag
# only bump v# (e.g., v3) tag if semantic release action publishes any new version
if: ${{ steps.semantic.outputs.new_release_major_version != '' }}
run: git tag -f v${MAJOR_VERSION} && git push -f origin v${MAJOR_VERSION}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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*/];
}
});
});