mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-16 09:44:08 +07:00
Fix manifest URL for v1
This commit is contained in:
@ -71,7 +71,7 @@ export async function fetch(url: string): Promise<string> {
|
||||
*/
|
||||
export async function parseVersion(version: string): Promise<string> {
|
||||
const manifest =
|
||||
'https://raw.githubusercontent.com/shivammathur/setup-php/develop/src/configs/php-versions.json';
|
||||
'https://raw.githubusercontent.com/shivammathur/setup-php/releases/v1/src/configs/php-versions.json';
|
||||
switch (true) {
|
||||
case /^(latest|\d+\.x)$/.test(version):
|
||||
return JSON.parse(await fetch(manifest))[version];
|
||||
|
Reference in New Issue
Block a user