Skip to content

Commit

Permalink
chore: use @actions/core logging (foundry-rs#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg authored Jul 10, 2023
1 parent 2fe7e70 commit cb603ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68387,11 +68387,11 @@ async function main() {

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

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

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

if (cache) {
// Restore the RPC cache, if any.
restoreRPCCache();
await restoreRPCCache();
}
} catch (err) {
core.setFailed(err);
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ async function main() {

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

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

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

if (cache) {
// Restore the RPC cache, if any.
restoreRPCCache();
await restoreRPCCache();
}
} catch (err) {
core.setFailed(err);
Expand Down

0 comments on commit cb603ca

Please sign in to comment.