Explorar o código

show timed out workflow run correctly

Mohammed Nafees %!s(int64=4) %!d(string=hai) anos
pai
achega
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
 				}
 			}