diff --git a/pkg/model/workflow.go b/pkg/model/workflow.go index 05d210b..cca2049 100644 --- a/pkg/model/workflow.go +++ b/pkg/model/workflow.go @@ -414,6 +414,10 @@ const ( // Type returns the type of the step func (s *Step) Type() StepType { + if s.Run == "" && s.Uses == "" { + return StepTypeInvalid + } + if s.Run != "" { if s.Uses != "" { return StepTypeInvalid