mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-14 16:54:07 +07:00
Fix manifest URL for v1
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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];
|
||||
|
Reference in New Issue
Block a user