diff --git a/models/actions/run.go b/models/actions/run.go index a846960632..ca817d4c1b 100644 --- a/models/actions/run.go +++ b/models/actions/run.go @@ -173,7 +173,7 @@ func (run *ActionRun) GetWorkflowRunEventPayload() (*api.WorkflowRunPayload, err } return &payload, nil } - return nil, fmt.Errorf("event %s is not a pull request event", run.Event) + return nil, fmt.Errorf("event %s is not a workflow run event", run.Event) } func (run *ActionRun) IsSchedule() bool {