mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +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"
|
return "OS Version: $OSVersion Build $OSBuild"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-BashVersion {
|
||||||
|
$version = bash -c 'echo ${BASH_VERSION}'
|
||||||
|
return "Bash $version"
|
||||||
|
}
|
||||||
|
|
||||||
function Get-JavaVersionsList {
|
function Get-JavaVersionsList {
|
||||||
param(
|
param(
|
||||||
[string] $DefaultVersion
|
[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 -Lines (Get-JavaVersionsList -DefaultVersion "1.8.0") -Style Unordered -NoNewLine
|
||||||
$markdown += New-MDList -Style Unordered -Lines @(
|
$markdown += New-MDList -Style Unordered -Lines @(
|
||||||
|
(Get-BashVersion),
|
||||||
(Get-PythonVersion),
|
(Get-PythonVersion),
|
||||||
(Get-RubyVersion),
|
(Get-RubyVersion),
|
||||||
(Get-GoVersion),
|
(Get-GoVersion),
|
||||||
|
|||||||
Reference in New Issue
Block a user