(workflowName, currentWorkflowName string)
| 78 | } |
| 79 | |
| 80 | func validateNotSelfReference(workflowName, currentWorkflowName string) error { |
| 81 | if workflowName == currentWorkflowName { |
| 82 | return fmt.Errorf("call-workflow: self-reference not allowed (workflow '%s' cannot call itself)\n\nA workflow cannot call itself to prevent infinite loops.\nUse a separate worker workflow for the task instead", workflowName) |
| 83 | } |
| 84 | return nil |
| 85 | } |
| 86 | |
| 87 | func validateWorkflowFileExists(fileResult *findWorkflowFileResult, workflowName, workflowPath string) error { |
| 88 | if fileResult.mdExists || fileResult.lockExists || fileResult.ymlExists { |
no test coverage detected