Skip to content

Commit

Permalink
use getLatestVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
federicocarboni committed Dec 19, 2023
1 parent 827cec5 commit a626f16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58722,7 +58722,7 @@ async function install(options) {
let release;
let version = options.version;
if (version.toLowerCase() === 'git' || version.toLowerCase() === 'release') {
release = await getRelease(installer, options);
release = await installer.getLatestRelease();
version = release.version;
}
const toolInstallDir = tool_cache.find(options.toolCacheDir, version);
Expand Down
2 changes: 1 addition & 1 deletion src/dists/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export async function install(options) {
let release;
let version = options.version;
if (version.toLowerCase() === 'git' || version.toLowerCase() === 'release') {
release = await getRelease(installer, options);
release = await installer.getLatestRelease();
version = release.version;
}
const toolInstallDir = tc.find(options.toolCacheDir, version);
Expand Down

0 comments on commit a626f16

Please sign in to comment.