Skip to content

Commit

Permalink
feat(sdk): accept licenses before installing cmdlines package
Browse files Browse the repository at this point in the history
  • Loading branch information
Malinskiy committed Jan 22, 2024
1 parent f33c43c commit 3a09eaf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions install-sdk/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ async function run() {
core.setFailed('You can\'t use this unless you accept the Android SDK licenses')
return
}

console.log("Installing Android Sdk")
let sdk = new SdkFactory().getAndroidSdk();
await sdk.install(url)

console.log("Accepting Android SDK licenses")
await sdk.acceptLicense()
console.log("Installing Android Sdk")
await sdk.install(url)

} catch (error) {
if(error !instanceof Error) {
core.setFailed(error.message);
Expand Down

0 comments on commit 3a09eaf

Please sign in to comment.