mirror of
https://github.com/actions/setup-go.git
synced 2025-05-04 22:15:17 +00:00
Update to use go-version (#10)
This commit is contained in:
@ -25,7 +25,10 @@ function run() {
|
||||
// Version is optional. If supplied, install / use from the tool cache
|
||||
// If not supplied then task is still used to setup proxy, auth, etc...
|
||||
//
|
||||
const version = core.getInput('version');
|
||||
let version = core.getInput('version');
|
||||
if (!version) {
|
||||
version = core.getInput('go-version');
|
||||
}
|
||||
if (version) {
|
||||
yield installer.getGo(version);
|
||||
}
|
||||
|
Reference in New Issue
Block a user