浏览代码

Merge pull request #2187 from porter-dev/master

Status hotfix -> staging
abelanger5 4 年之前
父节点
当前提交
bb2a6d5659
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      api/server/handlers/environment/list_deployments_by_cluster.go

+ 2 - 0
api/server/handlers/environment/list_deployments_by_cluster.go

@@ -221,6 +221,8 @@ func updateDeploymentWithGithubWorkflowRunStatus(
 				deployment.Status = types.DeploymentStatusFailed
 			} else if latestWorkflowRun.GetConclusion() == "timed_out" {
 				deployment.Status = types.DeploymentStatusTimedOut
+			} else if latestWorkflowRun.GetConclusion() == "success" {
+				deployment.Status = types.DeploymentStatusCreated
 			}
 		}
 	}