mirror of
https://github.com/bitwarden/android.git
synced 2026-05-22 14:11:47 -05:00
streamline rollout percentage options
This commit is contained in:
27
.github/workflows/publish.yml
vendored
27
.github/workflows/publish.yml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user