From 3e6124fb173bed5f88d45005774626fca313e161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Fri, 31 Jan 2025 11:59:35 +0800 Subject: [PATCH] release: Skip testflight when another build in review --- cmd/internal/app_store_connect/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/internal/app_store_connect/main.go b/cmd/internal/app_store_connect/main.go index ef006738..6eb1e7e0 100644 --- a/cmd/internal/app_store_connect/main.go +++ b/cmd/internal/app_store_connect/main.go @@ -5,6 +5,7 @@ import ( "net/http" "os" "strconv" + "strings" "time" "github.com/sagernet/asc-go/asc" @@ -194,6 +195,10 @@ func publishTestflight(ctx context.Context) error { log.Info(string(platform), " ", tag, " create submission") _, _, err = client.TestFlight.CreateBetaAppReviewSubmission(ctx, build.ID) if err != nil { + if strings.Contains(err.Error(), "ANOTHER_BUILD_IN_REVIEW") { + log.Error(err) + break + } return err } }