Skip to content

Commit

Permalink
Fix cli.ts not triggering.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinthakagodawita committed Jun 12, 2021
1 parent 90e58e9 commit 4506fa8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ async function main() {
await router.route(eventName);
}

if (require.main === module) {
main().catch((e) => {
process.exitCode = 1;
ghCore.setFailed(e.message);
});
}
main().catch((e) => {
process.exitCode = 1;
ghCore.setFailed(e.message);
});

0 comments on commit 4506fa8

Please sign in to comment.