output installed version number after setup (#51)

* output installed version number after setup

* set output for the installed version
This commit is contained in:
Robin Daumann
2020-03-09 08:18:12 +01:00
committed by GitHub
parent ebe4d7eb5f
commit f8fb48e9f7
4 changed files with 2784 additions and 4029 deletions

View File

@ -7,7 +7,10 @@ async function run() {
let version = core.getInput('python-version');
if (version) {
const arch: string = core.getInput('architecture', {required: true});
await finder.findPythonVersion(version, arch);
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')}`);