Skip to content

Android Rollout Bumper #28

Android Rollout Bumper

Android Rollout Bumper #28

Workflow file for this run

name: Android Rollout Bumper
on:
workflow_dispatch:
schedule:
# Runs at midnight every day
- cron: '0 0 * * *'
jobs:
android_bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/composite/setupNode
- name: Setup Ruby
uses: ruby/[email protected]
with:
bundler-cache: true
- name: Decrypt json Google Play credentials
run: gpg --batch --yes --decrypt --passphrase="${{ secrets.LARGE_SECRET_PASSPHRASE }}" --output android-fastlane-json-key.json android-fastlane-json-key.json.gpg
working-directory: android/app
- name: Generate version
id: checkAndroidStatus
uses: ./.github/actions/javascript/checkAndroidStatus
with:
GOOGLE_KEY_FILE: android/app/android-fastlane-json-key.json
PACKAGE_NAME: org.me.mobiexpensifyg
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Rollout Percentage with Fastlane
# We should not rollout if the release is halted or the rollout percentage is completed
if: ${{ steps.checkAndroidStatus.outputs.HALTED == 'false' && steps.checkAndroidStatus.outputs.ROLLOUT_PERCENTAGE != '-1' }}
run: |
echo "HALTED: ${{ steps.checkAndroidStatus.outputs.HALTED }}"
echo "ROLLOUT_PERCENTAGE: ${{ steps.checkAndroidStatus.outputs.ROLLOUT_PERCENTAGE }}"
bundle exec fastlane android update_hybrid_rollout rollout:${{ steps.checkAndroidStatus.outputs.ROLLOUT_PERCENTAGE }}