mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 13:56:47 +00:00
[ubuntu] Rework php installation (#3272)
This commit is contained in:
@@ -211,10 +211,11 @@ function Get-SbtVersion {
|
||||
|
||||
function Get-PHPVersions {
|
||||
$result = Get-CommandResult "apt list --installed" -Multiline
|
||||
return $result.Output | Where-Object { $_ -match "^php\d+\.\d+/"} | ForEach-Object {
|
||||
$aptSourceRepo = Get-AptSourceRepository -PackageName "php"
|
||||
$versionsList = $result.Output | Where-Object { $_ -match "^php\d+\.\d+/"} | ForEach-Object {
|
||||
$_ -match "now (?<version>\d+\.\d+\.\d+)-" | Out-Null
|
||||
$Matches.version
|
||||
}
|
||||
$Matches.version }
|
||||
return $versionsList + "(apt source repository: $aptSourceRepo)"
|
||||
}
|
||||
|
||||
function Get-ComposerVersion {
|
||||
|
||||
Reference in New Issue
Block a user