update index.js

This commit is contained in:
Nikita Bykov 2020-12-17 17:29:03 +03:00
parent 52b59a2c40
commit 09aeb67db1
2 changed files with 7 additions and 2 deletions

View file

@ -71,6 +71,11 @@ function usePyPy(
core.addPath(path.join(installDir, 'Scripts'));
}
if (IS_WINDOWS) {
const scriptDir = path.join(installDir, 'Scripts');
core.addPath(scriptDir);
}
const impl = 'pypy' + majorVersion.toString();
core.setOutput('python-version', impl);