diff --git a/act/model/workflow.go b/act/model/workflow.go index 4d39693f..8d15dbe8 100644 --- a/act/model/workflow.go +++ b/act/model/workflow.go @@ -1,6 +1,7 @@ package model import ( + "errors" "fmt" "io" "reflect" @@ -96,10 +97,10 @@ func (w *Workflow) OnSchedule() []string { func (w *Workflow) UnmarshalYAML(node *yaml.Node) error { // Validate the schema before deserializing it into our model if err := (&schema.Node{ - Definition: "workflow-root-strict", + Definition: "workflow-root", Schema: schema.GetWorkflowSchema(), }).UnmarshalYAML(node); err != nil { - return err + return errors.Join(err, fmt.Errorf("Actions YAML Schema Validation Error detected:\nFor more information, see: https://nektosact.com/usage/schema.html")) } type WorkflowDefault Workflow return node.Decode((*WorkflowDefault)(w))