mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Cleanup old markdown documenation approach (#979)
This commit is contained in:
committed by
GitHub
parent
8c8f384a61
commit
43e26fa96b
@@ -3,25 +3,12 @@
|
||||
## Desc: Validate GitHub CLI
|
||||
################################################################################
|
||||
|
||||
$command = Get-Command -Name 'gh'
|
||||
|
||||
if ($command)
|
||||
if (Get-Command -Name 'gh')
|
||||
{
|
||||
Write-Host "gh on path"
|
||||
Write-Host 'gh on path'
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host 'gh is not on path'
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "GitHub CLI"
|
||||
|
||||
$version = (gh --version).Split()[2]
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $version<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
Reference in New Issue
Block a user