mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
bash version output (#2238)
This commit is contained in:
committed by
GitHub
parent
80c5d4a561
commit
8bf8504e77
@@ -4,6 +4,11 @@ function Get-OSName {
|
||||
lsb_release -ds
|
||||
}
|
||||
|
||||
function Get-BashVersion {
|
||||
$version = bash -c 'echo ${BASH_VERSION}'
|
||||
return "Bash $version"
|
||||
}
|
||||
|
||||
function Get-CPPVersions {
|
||||
$result = Get-CommandResult "apt list --installed" -Multiline
|
||||
$cppVersions = $result.Output | Where-Object { $_ -match "g\+\+-\d+"} | ForEach-Object {
|
||||
|
||||
@@ -32,6 +32,7 @@ $markdown += New-MDHeader "Installed Software" -Level 2
|
||||
$markdown += New-MDHeader "Language and Runtime" -Level 3
|
||||
|
||||
$markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-BashVersion),
|
||||
(Get-CPPVersions),
|
||||
(Get-FortranVersions),
|
||||
(Get-ClangVersions),
|
||||
|
||||
Reference in New Issue
Block a user