mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
Move setOutput to findPyPyVersion
This commit is contained in:
parent
f62decb260
commit
19fb37dbea
2 changed files with 2 additions and 2 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -2080,6 +2080,7 @@ function findPyPyVersion(versionSpec, architecture) {
|
|||
core.exportVariable('pythonLocation', pythonLocation);
|
||||
core.addPath(pythonLocation);
|
||||
core.addPath(_binDir);
|
||||
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
|
||||
return { resolvedPyPyVersion, resolvedPythonVersion };
|
||||
});
|
||||
}
|
||||
|
@ -2105,7 +2106,6 @@ function findPyPyToolCache(pythonVersion, pypyVersion, architecture) {
|
|||
if (!installDir) {
|
||||
core.info(`PyPy version ${pythonVersion} (${pypyVersion}) was not found in the local cache`);
|
||||
}
|
||||
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
|
||||
return { installDir, resolvedPythonVersion, resolvedPyPyVersion };
|
||||
}
|
||||
exports.findPyPyToolCache = findPyPyToolCache;
|
||||
|
|
|
@ -52,6 +52,7 @@ export async function findPyPyVersion(
|
|||
core.exportVariable('pythonLocation', pythonLocation);
|
||||
core.addPath(pythonLocation);
|
||||
core.addPath(_binDir);
|
||||
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
|
||||
|
||||
return {resolvedPyPyVersion, resolvedPythonVersion};
|
||||
}
|
||||
|
@ -90,7 +91,6 @@ export function findPyPyToolCache(
|
|||
);
|
||||
}
|
||||
|
||||
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
|
||||
return {installDir, resolvedPythonVersion, resolvedPyPyVersion};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue