mirror of
https://github.com/actions/setup-python.git
synced 2025-07-18 17:58:19 +02:00
set output for the installed version
This commit is contained in:
parent
9d6ce31d1f
commit
49d27c4e1e
4 changed files with 37 additions and 17 deletions
|
@ -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')}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue