mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
Fix getting version of aliyun cli. (#1150)
* Fix getting version of aliyun cli. It has a version sub command, and --version is used to specify product api version, not to get version of aliyun cli. * Change title of aliyun-cli
This commit is contained in:
@@ -163,9 +163,8 @@ function Get-AWSSAMVersion {
|
||||
}
|
||||
|
||||
function Get-AlibabaCLIVersion {
|
||||
$(aliyun --version | Select-String "Alibaba Cloud Command Line Interface") -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$alicliVersion = $Matches.Version
|
||||
return "Alibaba CLI $alicliVersion"
|
||||
$alicliVersion = $(aliyun version)
|
||||
return "Alibaba Cloud CLI $alicliVersion"
|
||||
}
|
||||
|
||||
function Get-CloudFoundryVersion {
|
||||
|
||||
Reference in New Issue
Block a user