mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
bash version output (#2241)
This commit is contained in:
committed by
GitHub
parent
911f1685c4
commit
034cf97599
@@ -8,6 +8,11 @@ function Get-OSVersion {
|
||||
return "OS Version: $OSVersion Build $OSBuild"
|
||||
}
|
||||
|
||||
function Get-BashVersion {
|
||||
$version = bash -c 'echo ${BASH_VERSION}'
|
||||
return "Bash $version"
|
||||
}
|
||||
|
||||
function Get-JavaVersionsList {
|
||||
param(
|
||||
[string] $DefaultVersion
|
||||
|
||||
@@ -32,6 +32,7 @@ $markdown += New-MDHeader "Language and Runtime" -Level 3
|
||||
|
||||
$markdown += New-MDList -Lines (Get-JavaVersionsList -DefaultVersion "1.8.0") -Style Unordered -NoNewLine
|
||||
$markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-BashVersion),
|
||||
(Get-PythonVersion),
|
||||
(Get-RubyVersion),
|
||||
(Get-GoVersion),
|
||||
|
||||
Reference in New Issue
Block a user