mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-11-26 17:13:12 +07:00
Fix fallback to latest version in tools.ts
This commit is contained in:
@ -156,7 +156,7 @@ export async function filterList(tools_list: string[]): Promise<string[]> {
|
||||
* @param data
|
||||
*/
|
||||
export async function getUrl(data: RS): Promise<string> {
|
||||
if (data['version'] === 'latest') {
|
||||
if ((data['version'] ?? 'latest') === 'latest') {
|
||||
return [
|
||||
data['domain'],
|
||||
data['repository'],
|
||||
|
||||
Reference in New Issue
Block a user