Skip to content

Commit

Permalink
await
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier-galdeano committed Nov 28, 2023
1 parent 16b5530 commit c1291aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const core = require("@actions/core");
const github = require("@actions/github");

try {
const main = async () => {
const githubToken = core.getInput("GITHUB_TOKEN");
const labelToApprove = core.getInput("LABEL");

Expand All @@ -18,6 +18,10 @@ try {
event: "APPROVE",
});
}
};

try {
main();
} catch (error) {
core.setFailed(error.message);
}

0 comments on commit c1291aa

Please sign in to comment.