Write some more logic to update Android rollouts #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android Rollout Bumper | |
on: | |
# schedule: | |
# - cron: '0 0 * * *' # Runs at midnight every day | |
# TODO: Remove when done testing | |
push: | |
branches: | |
- andrew-android-bump | |
jobs: | |
android_bump: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: ./.github/actions/composite/setupNode | |
- 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 | |
if: ${{ steps.checkAndroidStatus.outputs.HALTED == 'false' }} | |
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 }} |