mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-08 12:28:20 +02:00
Use python-version (#10)
This commit is contained in:
parent
3342d62b16
commit
e336b852d5
4 changed files with 15 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue