mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[Linux] Minor documentation improvements (#6749)
This commit is contained in:
@@ -28,19 +28,6 @@ function Get-ToolcacheGoVersions {
|
||||
return Get-ChildItem $toolcachePath -Name | Sort-Object { [Version]$_ }
|
||||
}
|
||||
|
||||
function Build-GoEnvironmentTable {
|
||||
return Get-CachedToolInstances -Name "go" -VersionCommand "version" | ForEach-Object {
|
||||
$Version = [System.Version]($_.Version -Split(" "))[0]
|
||||
$Name = "GOROOT_$($Version.major)_$($Version.minor)_X64"
|
||||
$Value = (Get-Item env:\$Name).Value
|
||||
[PSCustomObject] @{
|
||||
"Name" = $Name
|
||||
"Value" = (Get-Item env:\$Name).Value
|
||||
"Architecture" = $_. Architecture
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function Build-CachedToolsSection {
|
||||
$output = ""
|
||||
|
||||
@@ -50,12 +37,12 @@ function Build-CachedToolsSection {
|
||||
$output += New-MDHeader "Node.js" -Level 4
|
||||
$output += New-MDList -Lines (Get-ToolcacheNodeVersions) -Style Unordered
|
||||
|
||||
$output += New-MDHeader "PyPy" -Level 4
|
||||
$output += New-MDList -Lines (Get-ToolcachePyPyVersions) -Style Unordered
|
||||
|
||||
$output += New-MDHeader "Python" -Level 4
|
||||
$output += New-MDList -Lines (Get-ToolcachePythonVersions) -Style Unordered
|
||||
|
||||
$output += New-MDHeader "PyPy" -Level 4
|
||||
$output += New-MDList -Lines (Get-ToolcachePyPyVersions) -Style Unordered
|
||||
|
||||
$output += New-MDHeader "Ruby" -Level 4
|
||||
$output += New-MDList -Lines (Get-ToolcacheRubyVersions) -Style Unordered
|
||||
|
||||
|
||||
Reference in New Issue
Block a user