Use python-version (#10)

This commit is contained in:
Danny McCormick 2019-08-13 16:30:18 -04:00 committed by GitHub
parent 3342d62b16
commit e336b852d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 6 deletions

View file

@ -4,7 +4,10 @@ import * as path from 'path';
async function run() {
try {
const version: string = core.getInput('version');
let version = core.getInput('version');
if (!version) {
version = core.getInput('python-version');
}
if (version) {
const arch: string = core.getInput('architecture', {required: true});
await finder.findPythonVersion(version, arch);