Skip to content

Commit 5bc7c26

Browse files
committed
build(dist): update build files
1 parent 4d9f433 commit 5bc7c26

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

dist/index.js

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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 = {}));
3333
const center = (text, length) => text.padStart((text.length + length) / 2).padEnd(length);
3434
const 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 }; }

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"license": "UNLICENSED",
1111
"main": "lib/index.js",
1212
"scripts": {
13-
"build": "tsc --build tsconfig.build.json",
13+
"build": "rm -rf lib && tsc --build tsconfig.build.json",
1414
"format": "prettier --write '**/*.ts'",
1515
"format:check": "prettier --check '**/*.ts'",
1616
"package": "ncc build --source-map --license licenses.txt",

0 commit comments

Comments
 (0)