Skip to content

Commit

Permalink
[KOGITO-8961][KSW-Operator] Split use case and test examples
Browse files Browse the repository at this point in the history
Signed-off-by: desmax74 <mdessi@redhat.com>
  • Loading branch information
desmax74 committed Jun 6, 2023
1 parent 0c2053c commit eb43503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ func GetKogitoServerlessOperatorBuilderConfig(path, namespace string) *corev1.Co
}

func GetPathForSamples(path string) string {
duplicatedFolderName := strings.Count(path, repoName)
// we are on GH and the path contains two times "kogito-serverless-operator"
operatorPath := ""
duplicatedFolderName := strings.Count(path, repoName)
if duplicatedFolderName > 1 {
// we are on GH and the path contains two times "kogito-serverless-operator"
_, after, _ := strings.Cut(path, repoName)
operatorPath = strings.Split(after, repoName)[1]
} else {
Expand Down

0 comments on commit eb43503

Please sign in to comment.