mirror of
https://github.com/actions/setup-python
synced 2025-04-06 23:39:42 +00:00
output installed version number after setup (#51)
* output installed version number after setup * set output for the installed version
This commit is contained in:
@ -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')}`);
|
||||
|
Reference in New Issue
Block a user