release: Fix publish testflight

This commit is contained in:
世界 2025-07-03 20:38:10 +08:00
parent 6cfa2b8b86
commit 96df69bcdc
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -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