mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 15:20:11 +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:
@@ -22,6 +22,6 @@ if ! command -v aliyun ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Document what was added to the image
|
# Document what was added to the image
|
||||||
aliyun_version="$(aliyun --version | grep "Alibaba Cloud Command Line Interface Version" | cut -d " " -f 7)"
|
aliyun_version="$(aliyun version)"
|
||||||
echo "Lastly, documenting what we added to the metadata file"
|
echo "Lastly, documenting what we added to the metadata file"
|
||||||
DocumentInstalledItem "Alibaba Cloud CLI ($aliyun_version)"
|
DocumentInstalledItem "Alibaba Cloud CLI ($aliyun_version)"
|
||||||
@@ -163,9 +163,8 @@ function Get-AWSSAMVersion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Get-AlibabaCLIVersion {
|
function Get-AlibabaCLIVersion {
|
||||||
$(aliyun --version | Select-String "Alibaba Cloud Command Line Interface") -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
$alicliVersion = $(aliyun version)
|
||||||
$alicliVersion = $Matches.Version
|
return "Alibaba Cloud CLI $alicliVersion"
|
||||||
return "Alibaba CLI $alicliVersion"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-CloudFoundryVersion {
|
function Get-CloudFoundryVersion {
|
||||||
|
|||||||
Reference in New Issue
Block a user