|
|
@@ -44,9 +44,8 @@ func getCreatePreviewEnvStep(
|
|
|
serverURL, porterTokenSecretName string,
|
|
|
projectID, clusterID, gitInstallationID uint,
|
|
|
repoOwner, repoName, actionVersion string,
|
|
|
- customNamespace bool,
|
|
|
) GithubActionYAMLStep {
|
|
|
- step := GithubActionYAMLStep{
|
|
|
+ return GithubActionYAMLStep{
|
|
|
Name: "Create Porter preview env",
|
|
|
Uses: fmt.Sprintf("%s@%s", createPreviewActionName, actionVersion),
|
|
|
With: map[string]string{
|
|
|
@@ -67,10 +66,4 @@ func getCreatePreviewEnvStep(
|
|
|
},
|
|
|
Timeout: 30,
|
|
|
}
|
|
|
-
|
|
|
- if customNamespace {
|
|
|
- step.With["namespace"] = "SET_CUSTOM_NAMESPACE_HERE"
|
|
|
- }
|
|
|
-
|
|
|
- return step
|
|
|
}
|