mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-19 20:14:44 +07:00
Use composer phars from cache with PHP version
This commit is contained in:
@ -220,9 +220,9 @@ export async function addBlackfirePlayer(data: RS): Promise<string> {
|
||||
export async function addComposer(data: RS): Promise<string> {
|
||||
const github = data['github'];
|
||||
const getcomposer = data['domain'];
|
||||
let cache_url = `${github}/shivammathur/composer-cache/releases/latest/download/composer-${data[
|
||||
'version'
|
||||
].replace('latest', 'stable')}.phar`;
|
||||
let cache_url = `${github}/shivammathur/composer-cache/releases/latest/download/composer-${
|
||||
data['php_version']
|
||||
}-${data['version'].replace('latest', 'stable')}.phar`;
|
||||
let source_url = `${getcomposer}/composer.phar`;
|
||||
switch (true) {
|
||||
case /^snapshot$/.test(data['version']):
|
||||
|
Reference in New Issue
Block a user