mirror of
https://code.forgejo.org/actions/setup-go
synced 2025-06-10 04:22:22 +02:00
bugs
This commit is contained in:
parent
dc575ee3b3
commit
3c844703e7
5 changed files with 11 additions and 10 deletions
|
@ -10,8 +10,10 @@ export async function run() {
|
|||
// If not supplied then problem matchers will still be setup. Useful for self-hosted.
|
||||
//
|
||||
let versionSpec = core.getInput('go-version');
|
||||
let stable: boolean =
|
||||
(core.getInput('stable') || '').toUpperCase() == 'TRUE';
|
||||
|
||||
// stable will be true unless false is the exact input
|
||||
// since getting unstable versions should be explicit
|
||||
let stable = Boolean(core.getInput('stable') || 'true');
|
||||
|
||||
if (versionSpec) {
|
||||
let installDir: string | undefined = tc.find('go', versionSpec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue