Sfoglia il codice sorgente

show timed out workflow run correctly

Mohammed Nafees 4 anni fa
parent
commit
741a4ba628

+ 1 - 1
api/server/handlers/environment/list_deployments_by_cluster.go

@@ -155,7 +155,7 @@ func updateDeploymentWithGithubWorkflowRunStatus(
 			} else if latestWorkflowRun.GetStatus() == "completed" {
 				if latestWorkflowRun.GetConclusion() == "failed" {
 					deployment.Status = types.DeploymentStatusFailed
-				} else if latestWorkflowRun.GetStatus() == "timed_out" {
+				} else if latestWorkflowRun.GetConclusion() == "timed_out" {
 					deployment.Status = types.DeploymentStatusTimedOut
 				}
 			}