Skip to content

Commit 8ad5bc6

Browse files
committed
fix: simplify APK file path selection logic in Firebase App Distribution workflow
1 parent 73a8ad7 commit 8ad5bc6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/Upload To Firebase App Distribution.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,4 @@ jobs:
7575
appId: ${{secrets.FIREBASE_APP_ID}}
7676
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
7777
groups: testers
78-
file: |
79-
if [[ "${{ github.event.inputs.environment }}" == "staging" ]]; then
80-
echo "app/build/outputs/apk/debug/app-debug.apk"
81-
elif [[ "${{ github.event.inputs.environment }}" == "release" ]]; then
82-
echo "app/build/outputs/apk/release/app-release.apk"
83-
else
84-
echo "Invalid environment selected"
85-
exit 1
86-
fi
78+
file: ${{ github.event.inputs.environment == 'staging' && 'app/build/outputs/apk/debug/app-debug.apk' || 'app/build/outputs/apk/release/app-release.apk' }}

0 commit comments

Comments
 (0)