add type conversion

This commit is contained in:
Dmitry Shibanov 2022-11-29 22:46:12 +01:00
parent ece959cf2b
commit b7bdf8dcd0
6 changed files with 83 additions and 58 deletions

View file

@ -30,16 +30,13 @@ export async function run() {
let token = core.getInput('token');
let auth = !token ? undefined : `token ${token}`;
const manifest = await installer.getManifest(auth);
const checkLatest = core.getBooleanInput('check-latest');
const installDir = await installer.getGo(
versionSpec,
checkLatest,
auth,
arch,
manifest
arch
);
const installDirVersion = path.basename(path.dirname(installDir));