Skip to content

Commit 7c528f6

Browse files
committed
Avoid interactive license prompts in android emulator job
1 parent db83898 commit 7c528f6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/scripts-android.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,16 @@ jobs:
5151

5252
- name: Install Android SDK
5353
uses: android-actions/setup-android@v3
54+
with:
55+
accept-android-sdk-licenses: false
56+
packages: ''
5457

55-
- name: Ensure platform-tools available on PATH
58+
- name: Ensure Android tools available on PATH
5659
shell: bash
5760
run: |
5861
set -euxo pipefail
59-
yes | sdkmanager --install "platform-tools" >/dev/null
62+
yes | sdkmanager --install "platform-tools" "build-tools;34.0.0" >/dev/null
63+
yes | sdkmanager --licenses >/dev/null
6064
if [ -n "${ANDROID_HOME:-}" ] && [ -d "${ANDROID_HOME}/platform-tools" ]; then
6165
echo "${ANDROID_HOME}/platform-tools" >> "$GITHUB_PATH"
6266
fi

0 commit comments

Comments
 (0)