1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-12 14:04:09 +02:00

Consume toolkit from npmjs (#12)

This commit is contained in:
Danny McCormick 2019-08-20 10:27:52 -04:00 committed by GitHub
parent ae4917dae5
commit 24b4fa76d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 8593 additions and 8474 deletions

View file

@ -1,22 +1,22 @@
import * as core from '@actions/core';
import * as finder from './find-python';
import * as path from 'path';
async function run() {
try {
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);
}
const matchersPath = path.join(__dirname, '..', '.github');
console.log(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);
} catch (err) {
core.setFailed(err.message);
}
}
run();
import * as core from '@actions/core';
import * as finder from './find-python';
import * as path from 'path';
async function run() {
try {
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);
}
const matchersPath = path.join(__dirname, '..', '.github');
console.log(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);
} catch (err) {
core.setFailed(err.message);
}
}
run();