Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #26 from thepwagner/workflow-dispatch-fix
Browse files Browse the repository at this point in the history
fix WorkflowDispatch handler mapping
  • Loading branch information
Pete Wagner authored Nov 19, 2020
2 parents ddeeee2 + 56aafca commit 937c867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ func (h *Handlers) handler(event string) func(context.Context, interface{}) erro
}

case "workflow_dispatch":
if h.Schedule == nil {
if h.WorkflowDispatch == nil {
return nil
}
return func(ctx context.Context, _ interface{}) error {
return h.Schedule(ctx)
return h.WorkflowDispatch(ctx)
}

default:
Expand Down

0 comments on commit 937c867

Please sign in to comment.