Skip to content

Commit

Permalink
Support workflow_dispatch (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
eskfung authored Sep 17, 2020
1 parent 2d48448 commit d91cdcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ async function executeGitHubAction(context, eventName, eventData) {
logger.info("Event name:", eventName);
logger.trace("Event data:", eventData);

if (eventName === "push") {
if (["push", "workflow_dispatch"].includes(eventName)) {
await handleBranchUpdate(context, eventName, eventData);
} else if (eventName === "status") {
await handleStatusUpdate(context, eventName, eventData);
} else if (eventName === "pull_request") {
await handlePullRequestUpdate(context, eventName, eventData);
} else if (eventName === "check_suite" || eventName === "check_run") {
} else if (["check_suite", "check_run"].includes(eventName)) {
await handleCheckUpdate(context, eventName, eventData);
} else if (eventName === "pull_request_review") {
await handlePullRequestReviewUpdate(context, eventName, eventData);
} else if (eventName === "schedule" || eventName === "repository_dispatch") {
} else if (["schedule", "repository_dispatch"].includes(eventName)) {
await handleScheduleTriggerOrRepositoryDispatch(context);
} else if (eventName === "issue_comment") {
await handleIssueComment(context, eventName, eventData);
Expand Down

0 comments on commit d91cdcf

Please sign in to comment.