mirror of
https://github.com/actions/setup-python.git
synced 2026-01-31 00:43:26 +03:00
17 lines
401 B
TypeScript
17 lines
401 B
TypeScript
import * as core from '@actions/core';
|
|
import * as finder from './find-python';
|
|
|
|
async function run() {
|
|
try {
|
|
const version: string = core.getInput('version');
|
|
if (version) {
|
|
const arch: string = core.getInput('architecture', {required: true});
|
|
await finder.findPythonVersion(version, arch);
|
|
}
|
|
} catch (err) {
|
|
core.setFailed(err.message);
|
|
}
|
|
}
|
|
|
|
run();
|