getAbsoluteWorkflowDir converts a relative workflow dir to absolute path
(workflowDir string, gitRoot string)
| 58 | |
| 59 | // getAbsoluteWorkflowDir converts a relative workflow dir to absolute path |
| 60 | func getAbsoluteWorkflowDir(workflowDir string, gitRoot string) string { |
| 61 | absWorkflowDir := workflowDir |
| 62 | if !filepath.IsAbs(absWorkflowDir) { |
| 63 | absWorkflowDir = filepath.Join(gitRoot, workflowDir) |
| 64 | } |
| 65 | return absWorkflowDir |
| 66 | } |
| 67 | |
| 68 | // readSourceRepoFromFile reads the 'source' frontmatter field from a local workflow file |
| 69 | // and returns the "owner/repo" portion (e.g. "github/gh-aw"). Returns "" if the file |
no outgoing calls
no test coverage detected