fix(release): wait for App Store build processing
This commit is contained in:
1 parent
7febcb8c22
commit
2bac88b110
2 files changed
+20
-1
No files matched your search
@@ -358,5 +358,19 @@ jobs:
|
||||
test -n "$APP_STORE_CONNECT_API_ISSUER_ID"
|
||||
test -n "$APP_STORE_CONNECT_API_KEY_ID"
|
||||
test -n "$APP_STORE_CONNECT_API_KEY_P8_BASE64"
|
||||
bundle exec fastlane ios submit_review
|
||||
log_file="$RUNNER_TEMP/edgeever-app-store-review.log"
|
||||
for attempt in {1..20}; do
|
||||
set +e
|
||||
bundle exec fastlane ios submit_review 2>&1 | tee "$log_file"
|
||||
status="${PIPESTATUS[0]}"
|
||||
set -e
|
||||
if [[ "$status" -eq 0 ]]; then
|
||||
exit 0
|
||||
fi
|
||||
if ! grep -Fq "Build number: ${APP_STORE_BUILD_NUMBER} does not exist" "$log_file" || [[ "$attempt" -eq 20 ]]; then
|
||||
exit "$status"
|
||||
fi
|
||||
echo "App Store Connect has not exposed build ${APP_STORE_BUILD_NUMBER} yet; retrying in 60 seconds (${attempt}/20)."
|
||||
sleep 60
|
||||
done
|
||||
working-directory: apps/mobile
|
||||
@@ -84,6 +84,11 @@ describe("store delivery command", () => {
|
||||
expect(workflow).toContain(
|
||||
'PRECHECK_INCLUDE_IN_APP_PURCHASES: "false"',
|
||||
);
|
||||
expect(workflow).toContain("for attempt in {1..20}");
|
||||
expect(workflow).toContain(
|
||||
'Build number: ${APP_STORE_BUILD_NUMBER} does not exist',
|
||||
);
|
||||
expect(workflow).toContain("retrying in 60 seconds (${attempt}/20)");
|
||||
const fastfile = readFileSync(
|
||||
new URL("../apps/mobile/fastlane/Fastfile", import.meta.url),
|
||||
"utf8",
|
||||
|
||||
Reference in new issue
Block a user