Skip to content

Commit 3bfb4ec

Browse files
committed
release: Improve publish testflight
1 parent bda9d58 commit 3bfb4ec

File tree

1 file changed

+3
-1
lines changed
  • cmd/internal/app_store_connect

1 file changed

+3
-1
lines changed

cmd/internal/app_store_connect/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ func publishTestflight(ctx context.Context) error {
134134
asc.PlatformTVOS,
135135
}
136136
}
137+
waitingForProcess := false
137138
for _, platform := range platforms {
138139
log.Info(string(platform), " list builds")
139140
for {
@@ -145,12 +146,13 @@ func publishTestflight(ctx context.Context) error {
145146
return err
146147
}
147148
build := builds.Data[0]
148-
if common.Contains(buildIDs, build.ID) || time.Since(build.Attributes.UploadedDate.Time) > 30*time.Minute {
149+
if !waitingForProcess && (common.Contains(buildIDs, build.ID) || time.Since(build.Attributes.UploadedDate.Time) > 30*time.Minute) {
149150
log.Info(string(platform), " ", tag, " waiting for process")
150151
time.Sleep(15 * time.Second)
151152
continue
152153
}
153154
if *build.Attributes.ProcessingState != "VALID" {
155+
waitingForProcess = true
154156
log.Info(string(platform), " ", tag, " waiting for process: ", *build.Attributes.ProcessingState)
155157
time.Sleep(15 * time.Second)
156158
continue

0 commit comments

Comments
 (0)