streamline rollout percentage options

This commit is contained in:
Amy Galles
2025-05-29 09:24:36 -07:00
parent 4d2f130f0a
commit aefee591e1
2 changed files with 28 additions and 22 deletions

View File

@@ -15,9 +15,14 @@ on:
required: true
type: number
rollout-percentage:
description: "Starting percentage of users who will receive this version update."
description: "Percentage of users who will receive this version update."
required: true
type: number
type: choice
options:
- 10%
- 30%
- 50%
- 100%
release-notes:
description: "Change notes to be included with this release."
type: string
@@ -50,16 +55,6 @@ jobs:
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
# - name: Check
# run: bundle exec fastlane check
# - name: Upload test reports on failure
# uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
# if: failure()
# with:
# name: test-reports
# path: app/build/reports/tests/
- name: Log in to Azure
uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
with:
@@ -93,6 +88,12 @@ jobs:
echo "$FORMATTED_MESSAGE" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Convert input percentage
run: |
PERCENTAGE=${{ inputs.rollout-percentage }}
DECIMAL=$(awk "BEGIN {print $PERCENTAGE/100}")
echo "ROLL_OUT=$DECIMAL" >> $GITHUB_ENV
- name: Promote Play Store version to production
env:
PLAY_KEYSTORE_PASSWORD: ${{ secrets.PLAY_BETA_KEYSTORE_PASSWORD }}
@@ -116,6 +117,6 @@ jobs:
bundle exec fastlane promoteToProduction \
versionCode:"$VERSION_CODE" \
rolloutPercentage:"$ROLLOUT_PERCENTAGE" \
rolloutPercentage:"$ROLL_OUT" \
packageName:"$PACKAGE_NAME"\
releaseNotes:"$RELEASE_NOTES"