Use dotnet-version (#16)

This commit is contained in:
Danny McCormick
2019-08-13 16:05:52 -04:00
committed by GitHub
parent 10a142b9ea
commit fe9489df58
4 changed files with 14 additions and 5 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('dotnet-version');
}
if (version) {
const dotnetInstaller = new installer.DotnetCoreInstaller(version);
yield dotnetInstaller.installDotnet();