fix: only pass in is_main flag to mobile build for zizmor (#19525)

This commit is contained in:
Zack Pollard 2025-06-25 16:53:08 +01:00 committed by GitHub
parent 027c4a8b34
commit afb444c92c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,8 +125,9 @@ jobs:
ALIAS: ${{ secrets.ALIAS }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
ANDROID_STORE_PASSWORD: ${{ secrets.ANDROID_STORE_PASSWORD }}
IS_MAIN: ${{ github.ref == 'refs/heads/main' }}
run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
if [[ $IS_MAIN == 'true' ]]; then
flutter build apk --release
flutter build apk --release --split-per-abi --target-platform android-arm,android-arm64,android-x64
else