Use node-version instead of version

This commit is contained in:
Danny McCormick 2019-08-12 16:05:16 -04:00
parent d963e800e3
commit ff2076a23f
4 changed files with 18 additions and 9 deletions

View file

@ -26,7 +26,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('node-version');
}
if (version) {
// TODO: installer doesn't support proxy
yield installer.getNode(version);