Skip to content

Commit 9c052e2

Browse files
committed
fix(ci): skip userFraction when rollout is 100%
The r0adkll/upload-google-play action rejects userFraction=1.0 (must be strictly between 0 and 1). For a full 100% rollout the parameter must be omitted entirely; the condition now only sets USER_FRACTION when the rollout percentage is below 100.
1 parent a8b6695 commit 9c052e2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/deploy-google-play.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ jobs:
6868
- name: Calculate rollout fraction (production only)
6969
id: rollout
7070
run: |
71-
if [ "${{ inputs.track }}" = "production" ]; then
71+
if [ "${{ inputs.track }}" = "production" ] && [ "${{ inputs.rollout_percentage }}" -lt 100 ]; then
7272
FRACTION=$(echo "scale=4; ${{ inputs.rollout_percentage }} / 100" | bc)
7373
echo "USER_FRACTION=$FRACTION" >> $GITHUB_OUTPUT
74-
echo "Production rollout: ${{ inputs.rollout_percentage }}% → fraction $FRACTION"
74+
echo "Production staged rollout: ${{ inputs.rollout_percentage }}% → fraction $FRACTION"
7575
else
7676
echo "USER_FRACTION=" >> $GITHUB_OUTPUT
77-
echo "Non-production track: no rollout fraction"
77+
echo "Full rollout or non-production track: no userFraction"
7878
fi
7979
8080
- name: Configure Android signing

0 commit comments

Comments
 (0)