Use python-version

This commit is contained in:
Danny McCormick 2019-08-13 14:46:42 -04:00
parent 3342d62b16
commit 0efdfcf398
4 changed files with 15 additions and 6 deletions

View file

@ -21,7 +21,10 @@ const path = __importStar(require("path"));
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
const version = core.getInput('version');
let version = core.getInput('version');
if (!version) {
version = core.getInput('python-version');
}
if (version) {
const arch = core.getInput('architecture', { required: true });
yield finder.findPythonVersion(version, arch);