Skip to content

Commit

Permalink
feat: more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyarthan committed Mar 13, 2024
1 parent ff6bf4e commit 97800f1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ inputs:
version:
description: 'Version of bwenv to set up. Default is latest.'
required: false
default: 'latest'

outputs:
path:
Expand Down
6 changes: 5 additions & 1 deletion dist/main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22406,7 +22406,11 @@ async function run() {
const availableVersions = await getAvailableVersions();
const matchingVersion = findLatestMatchingVersion(availableVersions, configVersion);
const version2 = inputVersion || matchingVersion || "latest";
core.info(`Using Version: ${version2}`);
core.info(
`Using Version: ${version2} (${configVersion}, ${inputVersion}, ${matchingVersion}, ${JSON.stringify(
availableVersions
)})`
);
const releaseURL = await getReleaseURL(version2);
await downloadFile(releaseURL, path.join(__dirname2, "bwenv.zip")).then(
(archive) => unzipArchive(archive, __dirname2, true)
Expand Down
6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ async function run() {

const version = inputVersion || matchingVersion || 'latest';

core.info(`Using Version: ${version}`);
core.info(
`Using Version: ${version} (${configVersion}, ${inputVersion}, ${matchingVersion}, ${JSON.stringify(
availableVersions,
)})`,
);

const releaseURL = await getReleaseURL(version);

Expand Down

0 comments on commit 97800f1

Please sign in to comment.