Prechádzať zdrojové kódy

do not use porter.yaml if unspecified (#4324)

Feroze Mohideen 2 rokov pred
rodič
commit
7049f695a1
1 zmenil súbory, kde vykonal 2 pridanie a 5 odobranie
  1. 2 5
      internal/integrations/ci/actions/steps.go

+ 2 - 5
internal/integrations/ci/actions/steps.go

@@ -83,14 +83,11 @@ func getDeployStackStep(
 	projectID, clusterID uint,
 	preview bool,
 ) GithubActionYAMLStep {
-	var path string
+	command := "exec porter apply"
 	if porterYamlPath != "" {
-		path = porterYamlPath
-	} else {
-		path = "porter.yaml"
+		command = fmt.Sprintf("exec porter apply -f %s", porterYamlPath)
 	}
 
-	command := fmt.Sprintf("exec porter apply -f %s", path)
 	if preview {
 		command = fmt.Sprintf("%s --preview", command)
 	}