Fix manifest URL for v1

This commit is contained in:
Shivam Mathur
2022-02-07 13:10:17 +05:30
parent f4e1b8d33e
commit 61aa0dc2f9
3 changed files with 5 additions and 5 deletions

View File

@ -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];