瀏覽代碼

deployment success from GH API

Mohammed Nafees 3 年之前
父節點
當前提交
7b5a38dbc1
共有 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
 				deployment.Status = types.DeploymentStatusFailed
 			} else if latestWorkflowRun.GetConclusion() == "timed_out" {
 			} else if latestWorkflowRun.GetConclusion() == "timed_out" {
 				deployment.Status = types.DeploymentStatusTimedOut
 				deployment.Status = types.DeploymentStatusTimedOut
+			} else if latestWorkflowRun.GetConclusion() == "success" {
+				deployment.Status = types.DeploymentStatusCreated
 			}
 			}
 		}
 		}
 	}
 	}