readWorkflowFileContent reads a workflow file's content as a string.
(filePath string)
| 142 | |
| 143 | // readWorkflowFileContent reads a workflow file's content as a string. |
| 144 | func readWorkflowFileContent(filePath string) (string, error) { |
| 145 | content, err := os.ReadFile(filePath) |
| 146 | if err != nil { |
| 147 | return "", fmt.Errorf("reading workflow file %s: %w", filePath, err) |
| 148 | } |
| 149 | return string(content), nil |
| 150 | } |
no test coverage detected