diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7d2cd666f18c..ec2749b95edb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -598,7 +598,12 @@ jobs: - name: Submit production build for App Store review and a slow rollout if: ${{ fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }} - run: bundle exec fastlane ios submit_hybrid_for_rollout + run: | + # Complete the previous version rollout + complete_hybrid_rollout + + # Submit the new version for review and phased rollout when it's approved + bundle exec fastlane ios submit_hybrid_for_rollout env: VERSION: ${{ steps.getIOSVersion.outputs.IOS_VERSION }} diff --git a/fastlane/Fastfile b/fastlane/Fastfile index c6d5bc08a153..eef7e311556a 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -11,6 +11,7 @@ # require 'ostruct' +require 'spaceship' skip_docs opt_out_usage @@ -545,6 +546,16 @@ platform :ios do ) end + desc "Submit HybridApp to 100% rollout on App Store" + lane :complete_hybrid_rollout do + api_token = Spaceship::ConnectAPI::Token.from_json_file("./ios/ios-fastlane-json-key.json") + Spaceship::ConnectAPI.token = api_token + + app = Spaceship::ConnectAPI::App.find("com.expensify.expensifylite") + version = app.get_live_app_store_version(platform: Spaceship::ConnectAPI::Platform::IOS) + version.fetch_app_store_version_phased_release.complete + end + desc "Submit HybridApp for production App Store slow rollout" lane :submit_hybrid_for_rollout do deliver(