mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-23 05:54:06 +07:00
Add fallback url for phpunit tools
This commit is contained in:
@ -422,6 +422,9 @@ export async function addPHPUnitTools(data: RS): Promise<string> {
|
||||
'latest';
|
||||
}
|
||||
data['url'] = await getPharUrl(data);
|
||||
if (data['url'].match(/-\d+/)) {
|
||||
data['url'] += ',' + data['url'].replace(/-(\d+)\.\d+\.\d+/, '-$1');
|
||||
}
|
||||
return await addArchive(data);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user