diff --git a/models/actions/task.go b/models/actions/task.go index 566a278a6ab..83f14dba78d 100644 --- a/models/actions/task.go +++ b/models/actions/task.go @@ -145,6 +145,10 @@ func (task *ActionTask) LoadAttributes(ctx context.Context) error { task.Steps = steps } + if err := task.LoadRepository(ctx); err != nil { + return err + } + return nil }