mirror of
https://code.forgejo.org/actions/setup-go
synced 2025-06-10 04:22:22 +02:00
CR feedback
This commit is contained in:
parent
7ea80d8e5f
commit
43880314e9
4 changed files with 95 additions and 42 deletions
|
@ -13,7 +13,7 @@ export async function run() {
|
|||
|
||||
// stable will be true unless false is the exact input
|
||||
// since getting unstable versions should be explicit
|
||||
let stable = Boolean(core.getInput('stable') || 'true');
|
||||
let stable = (core.getInput('stable') || 'true').toUpperCase() === 'TRUE';
|
||||
|
||||
console.log(
|
||||
`Setup go ${stable ? 'stable' : ''} version spec ${versionSpec}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue