mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[Ubuntu] Tight composer version to 2.2.9 for Ubuntu Server 18 (#5321)
* [Ubuntu] Tight composer verstion to 2.2.9 for Ubuntu Server 18 * Remove extra line * remove double quotes
This commit is contained in:
committed by
GitHub
parent
a5d2e20fbc
commit
f052b4c10f
@@ -236,8 +236,14 @@ function Get-PHPVersions {
|
||||
}
|
||||
|
||||
function Get-ComposerVersion {
|
||||
$(composer --version) -match "Composer version (?<version>\d+\.\d+\.\d+)\s" | Out-Null
|
||||
return $Matches.version
|
||||
$rawVersion = composer --version
|
||||
if (Test-IsUbuntu18) {
|
||||
$rawVersion -match "Composer version (?<version>\d+\.\d+\.\d+)\s" | Out-Null
|
||||
$composerVersion = $Matches.version
|
||||
} else {
|
||||
$composerVersion = $rawVersion | Take-OutputPart -Part 1
|
||||
}
|
||||
return $composerVersion
|
||||
}
|
||||
|
||||
function Get-PHPUnitVersion {
|
||||
|
||||
Reference in New Issue
Block a user