mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-31 18:04:10 +07:00
Add support for nightly alias
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -965,7 +965,7 @@ exports.getManifestURL = getManifestURL;
|
||||
async function parseVersion(version) {
|
||||
const manifest = await getManifestURL();
|
||||
switch (true) {
|
||||
case /^(latest|\d+\.x)$/.test(version):
|
||||
case /^(latest|nightly|\d+\.x)$/.test(version):
|
||||
return JSON.parse((await fetch(manifest))['data'])[version];
|
||||
default:
|
||||
switch (true) {
|
||||
|
Reference in New Issue
Block a user