瀏覽代碼

ignore inactive deployments for github workflow updates

Mohammed Nafees 4 年之前
父節點
當前提交
c81fd24eb9
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      api/server/handlers/environment/list_deployments_by_cluster.go

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

@@ -140,6 +140,10 @@ func updateDeploymentWithGithubWorkflowRunStatus(
 	env *models.Environment,
 	deployment *types.Deployment,
 ) {
+	if deployment.Status == types.DeploymentStatusInactive {
+		return
+	}
+
 	client, err := getGithubClientFromEnvironment(config, env)
 
 	if err == nil {