瀏覽代碼

release: Fix publish testflight

世界 3 月之前
父節點
當前提交
96df69bcdc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cmd/internal/app_store_connect/main.go

+ 1 - 1
cmd/internal/app_store_connect/main.go

@@ -177,7 +177,7 @@ func publishTestflight(ctx context.Context) error {
 			}
 			log.Info(string(platform), " ", tag, " publish")
 			response, err := client.TestFlight.AddBuildsToBetaGroup(ctx, groupID, []string{build.ID})
-			if response != nil && response.StatusCode == http.StatusUnprocessableEntity {
+			if response != nil && (response.StatusCode == http.StatusUnprocessableEntity || response.StatusCode == http.StatusNotFound) {
 				log.Info("waiting for process")
 				time.Sleep(15 * time.Second)
 				continue