feat: Improve error handling for Android SDK license acceptance in build workflow
Build Android APK / build-apk (push) Failing after 14m14s
Build Android APK / build-apk (push) Failing after 14m14s
This commit is contained in:
@@ -36,7 +36,16 @@ jobs:
|
|||||||
- name: Install Android SDK packages
|
- name: Install Android SDK packages
|
||||||
run: |
|
run: |
|
||||||
sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
|
sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
|
||||||
yes | sdkmanager --licenses
|
|
||||||
|
set +e
|
||||||
|
yes | sdkmanager --licenses >/dev/null 2>&1
|
||||||
|
LICENSE_EXIT=$?
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$LICENSE_EXIT" -ne 0 ] && [ "$LICENSE_EXIT" -ne 141 ]; then
|
||||||
|
echo "sdkmanager --licenses failed with exit code $LICENSE_EXIT"
|
||||||
|
exit "$LICENSE_EXIT"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Show Flutter and Dart version
|
- name: Show Flutter and Dart version
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user