TODO: Check functionality and fix tests

Update: README, action file
This commit is contained in:
Sergey-Murtazin 2022-01-19 17:47:56 +03:00
parent e461af0410
commit c65923e013
5 changed files with 206 additions and 2 deletions

View file

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