mirror of
https://github.com/actions/setup-go.git
synced 2025-07-19 05:15:16 -06:00
TODO: Check functionality and fix tests
Update: README, action file
This commit is contained in:
parent
e461af0410
commit
c65923e013
5 changed files with 206 additions and 2 deletions
|
@ -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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue