Update to use go-version (#10)

This commit is contained in:
Danny McCormick
2019-08-13 16:31:11 -04:00
committed by GitHub
parent b98503c960
commit 818723587f
4 changed files with 15 additions and 6 deletions

View File

@ -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);
}