mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[ubuntu] Adds detection of cpan version (#2488)
* Adds detection of cpan version The Perl package manager * Adds detected cpan version * Updates copypasta
This commit is contained in:
committed by
GitHub
parent
9f700144e1
commit
c63f698e70
@@ -91,6 +91,13 @@ function Get-HomebrewVersion {
|
|||||||
return "Homebrew $version"
|
return "Homebrew $version"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-CpanVersion {
|
||||||
|
$result = Get-CommandResult "cpan --version"
|
||||||
|
$result.Output -match "version (?<version>\d+\.\d+) " | Out-Null
|
||||||
|
$cpanVersion = $Matches.version
|
||||||
|
return "cpan $cpanVersion"
|
||||||
|
}
|
||||||
|
|
||||||
function Get-GemVersion {
|
function Get-GemVersion {
|
||||||
$result = Get-CommandResult "gem --version"
|
$result = Get-CommandResult "gem --version"
|
||||||
$result.Output -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
$result.Output -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ $markdown += New-MDHeader "Package Management" -Level 3
|
|||||||
|
|
||||||
$packageManagementList = @(
|
$packageManagementList = @(
|
||||||
(Get-HomebrewVersion),
|
(Get-HomebrewVersion),
|
||||||
|
(Get-CpanVersion),
|
||||||
(Get-GemVersion),
|
(Get-GemVersion),
|
||||||
(Get-MinicondaVersion),
|
(Get-MinicondaVersion),
|
||||||
(Get-HelmVersion),
|
(Get-HelmVersion),
|
||||||
|
|||||||
Reference in New Issue
Block a user