set output for the installed version

This commit is contained in:
Robin Daumann 2020-01-29 14:17:34 +01:00
parent 9d6ce31d1f
commit 49d27c4e1e
4 changed files with 37 additions and 17 deletions

View file

@ -7,8 +7,10 @@ async function run() {
let version = core.getInput('python-version');
if (version) {
const arch: string = core.getInput('architecture', {required: true});
let installed = await finder.findPythonVersion(version, arch);
console.log(`Successfully setup ${installed}.`);
const installed = await finder.findPythonVersion(version, arch);
console.log(
`Successfully setup ${installed.impl} (${installed.version}).`
);
}
const matchersPath = path.join(__dirname, '..', '.github');
console.log(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);