make some refactoring

This commit is contained in:
Dmitry Shibanov 2022-02-18 15:20:03 +03:00
parent 2bb2aab2fd
commit d50f842f54
4 changed files with 31 additions and 60 deletions

View file

@ -25,12 +25,7 @@ export async function run() {
let auth = !token || isGhes() ? undefined : `token ${token}`;
const checkLatest = core.getBooleanInput('check-latest');
const installDir = await installer.getGo(
versionSpec,
stable,
checkLatest,
auth
);
const installDir = await installer.getGo(versionSpec, checkLatest, auth);
core.exportVariable('GOROOT', installDir);
core.addPath(path.join(installDir, 'bin'));