Skip to content

Commit 2df043d

Browse files
committed
fix/#77: tester/groups 직접 전달
1 parent 6ce1525 commit 2df043d

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

.github/workflows/distribute.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -76,34 +76,24 @@ jobs:
7676
echo "EOF"
7777
} >> $GITHUB_OUTPUT
7878
79-
- name: Resolve distribution arguments
80-
id: dist_args
81-
run: |
82-
ARGS=""
83-
TESTERS="${{ github.event.inputs.testers }}"
84-
GROUPS="${{ github.event.inputs.groups }}"
85-
if [ -n "$TESTERS" ]; then
86-
ARGS="$ARGS -PfirebaseAppDistributionTesters=$TESTERS"
87-
fi
88-
if [ -n "$GROUPS" ]; then
89-
ARGS="$ARGS -PfirebaseAppDistributionGroups=$GROUPS"
90-
fi
91-
echo "args=$ARGS" >> $GITHUB_OUTPUT
92-
9379
- name: Build & Distribute (Debug)
9480
if: github.event.inputs.build_type == 'debug'
9581
run: |
9682
./gradlew assembleDebug appDistributionUploadDebug \
97-
"-PfirebaseAppDistributionReleaseNotes=${{ steps.notes.outputs.value }}" \
98-
${{ steps.dist_args.outputs.args }}
83+
"-PfirebaseAppDistributionReleaseNotes=$RELEASE_NOTES" \
84+
"-PfirebaseAppDistributionTesters=${{ github.event.inputs.testers }}" \
85+
"-PfirebaseAppDistributionGroups=${{ github.event.inputs.groups }}"
9986
env:
10087
GOOGLE_APPLICATION_CREDENTIALS: app/firebase-service-account.json
88+
RELEASE_NOTES: ${{ steps.notes.outputs.value }}
10189

10290
- name: Build & Distribute (Release)
10391
if: github.event.inputs.build_type == 'release'
10492
run: |
10593
./gradlew assembleRelease appDistributionUploadRelease \
106-
"-PfirebaseAppDistributionReleaseNotes=${{ steps.notes.outputs.value }}" \
107-
${{ steps.dist_args.outputs.args }}
94+
"-PfirebaseAppDistributionReleaseNotes=$RELEASE_NOTES" \
95+
"-PfirebaseAppDistributionTesters=${{ github.event.inputs.testers }}" \
96+
"-PfirebaseAppDistributionGroups=${{ github.event.inputs.groups }}"
10897
env:
10998
GOOGLE_APPLICATION_CREDENTIALS: app/firebase-service-account.json
99+
RELEASE_NOTES: ${{ steps.notes.outputs.value }}

0 commit comments

Comments
 (0)