mirror of
https://github.com/actions/setup-python.git
synced 2025-06-12 23:37:12 +02:00
Use python-version (#10)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user