mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-03-31 18:46:20 +00:00
release: Skip testflight when another build in review
This commit is contained in:
parent
a2d40eb8b8
commit
8d6c4f1289
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue