ExtractWorkflowDescriptionFromFile extracts the description field from a workflow file
(filePath string)
| 263 | |
| 264 | // ExtractWorkflowDescriptionFromFile extracts the description field from a workflow file |
| 265 | func ExtractWorkflowDescriptionFromFile(filePath string) string { |
| 266 | content, err := os.ReadFile(filePath) |
| 267 | if err != nil { |
| 268 | return "" |
| 269 | } |
| 270 | |
| 271 | return ExtractWorkflowDescription(string(content)) |
| 272 | } |