Skip to content

Commit cb603ca

Browse files
authored
chore: use @actions/core logging (#30)
1 parent 2fe7e70 commit cb603ca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68387,11 +68387,11 @@ async function main() {
6838768387

6838868388
// Download the archive containing the binaries
6838968389
const download = getDownloadObject(version);
68390-
console.log(`Downloading Foundry '${version}' from: ${download.url}`);
68390+
core.info(`Downloading Foundry '${version}' from: ${download.url}`);
6839168391
const pathToArchive = await toolCache.downloadTool(download.url);
6839268392

6839368393
// Extract the archive onto host runner
68394-
console.log(`Extracting ${pathToArchive}`);
68394+
core.debug(`Extracting ${pathToArchive}`);
6839568395
const extract = download.url.endsWith(".zip") ? toolCache.extractZip : toolCache.extractTar;
6839668396
const pathToCLI = await extract(pathToArchive);
6839768397

@@ -68403,7 +68403,7 @@ async function main() {
6840368403

6840468404
if (cache) {
6840568405
// Restore the RPC cache, if any.
68406-
restoreRPCCache();
68406+
await restoreRPCCache();
6840768407
}
6840868408
} catch (err) {
6840968409
core.setFailed(err);

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ async function main() {
1212

1313
// Download the archive containing the binaries
1414
const download = getDownloadObject(version);
15-
console.log(`Downloading Foundry '${version}' from: ${download.url}`);
15+
core.info(`Downloading Foundry '${version}' from: ${download.url}`);
1616
const pathToArchive = await toolCache.downloadTool(download.url);
1717

1818
// Extract the archive onto host runner
19-
console.log(`Extracting ${pathToArchive}`);
19+
core.debug(`Extracting ${pathToArchive}`);
2020
const extract = download.url.endsWith(".zip") ? toolCache.extractZip : toolCache.extractTar;
2121
const pathToCLI = await extract(pathToArchive);
2222

@@ -28,7 +28,7 @@ async function main() {
2828

2929
if (cache) {
3030
// Restore the RPC cache, if any.
31-
restoreRPCCache();
31+
await restoreRPCCache();
3232
}
3333
} catch (err) {
3434
core.setFailed(err);

0 commit comments

Comments
 (0)