mirror of
https://github.com/actions/runner-images.git
synced 2026-01-06 18:19:54 +08:00
Add Alibaba cloud aliyun-cli (#688)
* added aliyun cli to windows * added aliyun cli to Ubuntu Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
This commit is contained in:
24
images/win/scripts/Installers/Validate-AliyunCli.ps1
Normal file
24
images/win/scripts/Installers/Validate-AliyunCli.ps1
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
## File: Validate-AliyunCli.ps1
|
||||
## Desc: Validate Alibaba Cloud CLI
|
||||
################################################################################
|
||||
|
||||
if (Get-Command -Name 'aliyun')
|
||||
{
|
||||
Write-Host "Alibaba Cloud CLI on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host 'Alibaba Cloud CLI is not on path'
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$aliyun_version = ((aliyun --version | Select-String "Alibaba Cloud Command Line Interface Version ") -Split(" "))[6]
|
||||
|
||||
$SoftwareName = "Alibaba Cloud CLI"
|
||||
$Description = @"
|
||||
_Version:_ $aliyun_version<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
Reference in New Issue
Block a user