mirror of
https://github.com/actions/setup-go.git
synced 2025-06-30 21:23:43 +00:00
Update to use go-version (#10)
This commit is contained in:
parent
b98503c960
commit
818723587f
4 changed files with 15 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue