mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-21 04:54:45 +07:00
Add highest alias as an alternative to latest
This commit is contained in:
@ -59,7 +59,7 @@ export async function getManifestURL(): Promise<string> {
|
||||
*/
|
||||
export async function parseVersion(version: string): Promise<string> {
|
||||
switch (true) {
|
||||
case /^(latest|lowest|nightly|\d+\.x)$/.test(version):
|
||||
case /^(latest|lowest|highest|nightly|\d+\.x)$/.test(version):
|
||||
return JSON.parse((await fetch.fetch(await getManifestURL()))['data'])[
|
||||
version
|
||||
];
|
||||
|
Reference in New Issue
Block a user