@@ -29,7 +29,7 @@ var TextAlign;
2929 TextAlign["LEFT"] = "left";
3030 TextAlign["RIGHT"] = "right";
3131 TextAlign["CENTER"] = "center";
32- })(TextAlign = exports.TextAlign || (exports.TextAlign = {}));
32+ })(TextAlign || (exports.TextAlign = TextAlign = {}));
3333const center = (text, length) => text.padStart((text.length + length) / 2).padEnd(length);
3434const formatShellCell = (cell, length = 10) => {
3535 const format = colors_1.default[cell.delta > 0 ? "red" : cell.delta < 0 ? "green" : "reset"];
@@ -390,24 +390,19 @@ function run() {
390390 for (var _e = true, _f = __asyncValues(octokit.paginate.iterator(octokit.rest.actions.listArtifactsForRepo, {
391391 owner,
392392 repo,
393- })), _g; _g = yield _f.next(), _a = _g.done, !_a;) {
393+ })), _g; _g = yield _f.next(), _a = _g.done, !_a; _e = true ) {
394394 _c = _g.value;
395395 _e = false;
396- try {
397- const res = _c;
398- const artifact = res.data.find((artifact) => !artifact.expired && artifact.name === baseReport);
399- if (!artifact) {
400- yield new Promise((resolve) => setTimeout(resolve, 900)); // avoid reaching the API rate limit
401- continue;
402- }
403- artifactId = artifact.id;
404- refCommitHash = (_d = artifact.workflow_run) === null || _d === void 0 ? void 0 : _d.head_sha;
405- core.info(`Found artifact named "${baseReport}" with ID "${artifactId}" from commit "${refCommitHash}"`);
406- break;
407- }
408- finally {
409- _e = true;
396+ const res = _c;
397+ const artifact = res.data.find((artifact) => !artifact.expired && artifact.name === baseReport);
398+ if (!artifact) {
399+ yield new Promise((resolve) => setTimeout(resolve, 900)); // avoid reaching the API rate limit
400+ continue;
410401 }
402+ artifactId = artifact.id;
403+ refCommitHash = (_d = artifact.workflow_run) === null || _d === void 0 ? void 0 : _d.head_sha;
404+ core.info(`Found artifact named "${baseReport}" with ID "${artifactId}" from commit "${refCommitHash}"`);
405+ break;
411406 }
412407 }
413408 catch (e_1_1) { e_1 = { error: e_1_1 }; }
0 commit comments