1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-10 21:32:19 +02:00

Add matcher

This commit is contained in:
Danny McCormick 2019-07-08 14:43:29 -04:00
parent 87886b89ec
commit f7f8dbaddf
3 changed files with 22 additions and 0 deletions

View file

@ -1,5 +1,6 @@
import * as core from '@actions/core';
import * as finder from './find-python';
import * as path from 'path';
async function run() {
try {
@ -8,6 +9,8 @@ async function run() {
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);
}