Skip to content

Commit 0dd50e6

Browse files
committed
fix: build
1 parent 629dd39 commit 0dd50e6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

bin/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89762,10 +89762,13 @@ var run = function () { return __awaiter$1(void 0, void 0, void 0, function () {
8976289762
coreExports.error("there is no coverage type ".concat(tableWithTypeLimit));
8976389763
return [2 /*return*/];
8976489764
}
89765-
if (!github)
89766-
return [2 /*return*/];
8976789765
if (!utils$2.context.payload.pull_request)
89768-
return [2 /*return*/];
89766+
throw ("this action requires a pull request context to be able to comment\n" +
89767+
"https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request");
89768+
if (!github)
89769+
throw token
89770+
? "no Github token was informed !"
89771+
: "the Github token informed is not valid";
8976989772
commit = (_g = utils$2.context.payload.pull_request) === null || _g === void 0 ? void 0 : _g.head.sha.substring(0, 7);
8977089773
if (!require$$0$1.existsSync(file)) {
8977189774
throw "file \"".concat(file, "\" ").concat(notFoundMessage);

bin/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.

0 commit comments

Comments
 (0)