mirror of
https://github.com/android-actions/setup-android
synced 2024-11-22 13:29:35 -08:00
Set --sdk_root
for accepting licenses
This commit is contained in:
parent
023a8c2e99
commit
2381fc9bef
2 changed files with 6 additions and 2 deletions
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -49,7 +49,11 @@ export async function install(): Promise<void> {
|
||||||
core.error(`Unsupported platform: ${process.platform}`)
|
core.error(`Unsupported platform: ${process.platform}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
exec.exec(sdkManager, ['--licenses'], {input: acceptBuffer})
|
await exec.exec(
|
||||||
|
sdkManager,
|
||||||
|
['--licenses', `--sdk_root=${ANDROID_SDK_ROOT}`],
|
||||||
|
{input: acceptBuffer}
|
||||||
|
)
|
||||||
|
|
||||||
exec.exec(
|
exec.exec(
|
||||||
sdkManager,
|
sdkManager,
|
||||||
|
|
Loading…
Reference in a new issue