mirror of
https://github.com/actions/setup-python.git
synced 2026-01-20 04:38:56 +08:00
resolve throw error
This commit is contained in:
parent
3d613a97df
commit
ef9020329d
4 changed files with 29 additions and 36 deletions
|
|
@ -49,3 +49,7 @@ export function validateVersion(version: string) {
|
|||
export function isNightlyKeyword(pypyVersion: string) {
|
||||
return pypyVersion === 'nightly';
|
||||
}
|
||||
|
||||
export function getPyPyVersionFromPath(installDir: string) {
|
||||
return path.basename(path.dirname(installDir));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue