mirror of
https://code.forgejo.org/actions/setup-go
synced 2025-06-10 04:22:22 +02:00
Implement "check-latest" flag to check if pre-cached version is latest one (#186)
This commit is contained in:
parent
44e221478f
commit
bfdd3570ce
17 changed files with 4811 additions and 3599 deletions
|
@ -24,7 +24,13 @@ 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.getBooleanInput('check-latest');
|
||||
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