Skip to content

Commit 3a09eaf

Browse files
committed
feat(sdk): accept licenses before installing cmdlines package
1 parent f33c43c commit 3a09eaf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

install-sdk/src/main.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ async function run() {
1414
core.setFailed('You can\'t use this unless you accept the Android SDK licenses')
1515
return
1616
}
17-
18-
console.log("Installing Android Sdk")
1917
let sdk = new SdkFactory().getAndroidSdk();
20-
await sdk.install(url)
21-
2218
console.log("Accepting Android SDK licenses")
2319
await sdk.acceptLicense()
20+
console.log("Installing Android Sdk")
21+
await sdk.install(url)
22+
2423
} catch (error) {
2524
if(error !instanceof Error) {
2625
core.setFailed(error.message);

0 commit comments

Comments
 (0)