Skip to content

Commit 06c5f18

Browse files
author
Maxim Lobanov
committed
update logs
1 parent 815c909 commit 06c5f18

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

dist/index.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47599,33 +47599,30 @@ const run = async () => {
4759947599
const allPackages = await sdkmanager.getAllPackagesInfo();
4760047600
core.endGroup();
4760147601
for (const packageName of packages) {
47602-
core.startGroup(`Installing '${packageName}'...`);
47602+
core.info(`${os.EOL}Installing '${packageName}'...`);
4760347603
const foundPackage = allPackages.find(p => p.name === packageName);
4760447604
if (!foundPackage) {
47605-
throw new Error(`Package '${packageName}' is not available. Enable debug output for more details`);
47605+
throw new Error("Package is not available. Enable debug output for more details");
4760647606
}
4760747607
if (foundPackage.installed && !foundPackage.update) {
47608-
core.info(` Package '${foundPackage.name}' is already installed and update is not required`);
47609-
core.endGroup();
47608+
core.info(" Package is already installed and update is not required");
4761047609
continue;
4761147610
}
4761247611
if (enableCache) {
4761347612
if (await restoreCache(sdkmanager, foundPackage)) {
47614-
core.info(` Package '${foundPackage.name}' is restored from cache`);
47613+
core.info(" Package is restored from cache");
4761547614
continue;
47616-
core.endGroup();
4761747615
}
4761847616
else {
4761947617
core.info(" No cache found");
4762047618
}
4762147619
}
4762247620
await sdkmanager.install(foundPackage);
47623-
core.info(` Package '${foundPackage.name}' is downloaded and installed`);
47621+
core.info(" Package is downloaded and installed");
4762447622
if (enableCache) {
4762547623
await saveCache(sdkmanager, foundPackage);
47626-
core.info(` Package '${foundPackage.name}' is saved to cache`);
47624+
core.info(` Package is saved to cache`);
4762747625
}
47628-
core.endGroup();
4762947626
}
4763047627
}
4763147628
catch (error) {

src/setup-android-tools.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,36 +57,33 @@ const run = async(): Promise<void> => {
5757
core.endGroup();
5858

5959
for (const packageName of packages) {
60-
core.startGroup(`Installing '${packageName}'...`);
60+
core.info(`${os.EOL}Installing '${packageName}'...`);
6161
const foundPackage = allPackages.find(p => p.name === packageName);
6262
if (!foundPackage) {
63-
throw new Error(`Package '${packageName}' is not available. Enable debug output for more details`);
63+
throw new Error("Package is not available. Enable debug output for more details");
6464
}
6565

6666
if (foundPackage.installed && !foundPackage.update) {
67-
core.info(` Package '${foundPackage.name}' is already installed and update is not required`);
68-
core.endGroup();
67+
core.info(" Package is already installed and update is not required");
6968
continue;
7069
}
7170

7271
if (enableCache) {
7372
if (await restoreCache(sdkmanager, foundPackage)) {
74-
core.info(` Package '${foundPackage.name}' is restored from cache`);
73+
core.info(" Package is restored from cache");
7574
continue;
76-
core.endGroup();
7775
} else {
7876
core.info(" No cache found");
7977
}
8078
}
8179

8280
await sdkmanager.install(foundPackage);
83-
core.info(` Package '${foundPackage.name}' is downloaded and installed`);
81+
core.info(" Package is downloaded and installed");
8482

8583
if (enableCache) {
8684
await saveCache(sdkmanager, foundPackage);
87-
core.info(` Package '${foundPackage.name}' is saved to cache`);
85+
core.info(` Package is saved to cache`);
8886
}
89-
core.endGroup();
9087
}
9188
} catch (error) {
9289
core.setFailed(error.message);

0 commit comments

Comments
 (0)