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

2
dist/index.js vendored
View File

@ -869,7 +869,7 @@ async function fetch(url) {
}
exports.fetch = fetch;
async function parseVersion(version) {
const manifest = 'https://raw.githubusercontent.com/shivammathur/setup-php/develop/src/configs/php-versions.json';
const manifest = '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];