mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
bash version output (#2243)
This commit is contained in:
committed by
GitHub
parent
034cf97599
commit
80c5d4a561
@@ -1,5 +1,10 @@
|
||||
Import-Module "$PSScriptRoot/../helpers/SoftwareReport.Helpers.psm1" -DisableNameChecking
|
||||
|
||||
function Get-BashVersion {
|
||||
$version = bash -c 'echo ${BASH_VERSION}'
|
||||
return "Bash $version"
|
||||
}
|
||||
|
||||
function Get-DotnetVersionList {
|
||||
$sdkRawList = Run-Command "dotnet --list-sdks"
|
||||
$sdkVersionList = $sdkRawList | ForEach-Object { Take-Part $_ -Part 0 }
|
||||
|
||||
@@ -54,6 +54,7 @@ if ($os.IsLessThanBigSur) {
|
||||
}
|
||||
|
||||
$markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-BashVersion),
|
||||
"Node.js ${nodejsVersion}"
|
||||
"NVM ${nvmVersion}"
|
||||
"NVM - Cached node versions: ${nvmCachedVersions}"
|
||||
|
||||
Reference in New Issue
Block a user