mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 10:28:00 +08:00
Change approach to get the version from manifest (#2966)
This commit is contained in:
@@ -4,7 +4,7 @@ source ~/utils/xamarin-utils.sh
|
||||
|
||||
VSMAC_VERSION=$(get_toolset_value '.xamarin.vsmac')
|
||||
if [ $VSMAC_VERSION == "latest" ]; then
|
||||
VSMAC_VERSION=$(curl https://formulae.brew.sh/api/cask/visual-studio.json 2>/dev/null | jq .version | tr -d \")
|
||||
VSMAC_VERSION=$(curl -L "http://aka.ms/manifest/stable" | jq -r ".items[] | select(.genericName==\"VisualStudioMac\").version")
|
||||
fi
|
||||
VSMAC_DOWNLOAD_URL=$(buildVSMacDownloadUrl $VSMAC_VERSION)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user