package action import ( _ "embed" "gopkg.in/yaml.v3" ) //go:embed templates/actions.yaml var defaultActionsYAML []byte type actionFile struct { Actions []Action `yaml:"actions"` } // LoadDefaultActions loads the embedded default action templates. func LoadDefaultActions() ([]Action, error) { var f actionFile if err := yaml.Unmarshal(defaultActionsYAML, &f); err != nil { return nil, err } return f.Actions, nil }