From 775c64f21c62e17eb414ad61ceebed600c4dc6b4 Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Thu, 18 May 2023 12:53:10 +0200 Subject: [PATCH] [macOS] fix preimage data for Ventura (#7594) --- images/macos/provision/configuration/preimagedata.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/images/macos/provision/configuration/preimagedata.sh b/images/macos/provision/configuration/preimagedata.sh index 58891f23..de95e4b9 100644 --- a/images/macos/provision/configuration/preimagedata.sh +++ b/images/macos/provision/configuration/preimagedata.sh @@ -7,13 +7,18 @@ image_version=$(echo $IMAGE_VERSION | cut -d _ -f 2) os_name=$(sw_vers -productName) os_version=$(sw_vers -productVersion) os_build=$(sw_vers -buildVersion) -label_version=$(echo $os_version | cut -d. -f1,2) label_version=$(echo $os_version | cut -d. -f1) image_label="macos-${label_version}" release_label="macOS-${label_version}" -software_url="https://github.com/actions/runner-images/blob/${release_label}/${image_version}/images/macos/${image_label}-Readme.md" -releaseUrl="https://github.com/actions/runner-images/releases/tag/${release_label}%2F${image_version}" + +if is_Ventura; then + software_url="https://github.com/actions/runner-images/blob/${image_label}/${image_version}/images/macos/${image_label}-Readme.md" + releaseUrl="https://github.com/actions/runner-images/releases/tag/${image_label}%2F${image_version}" +else + software_url="https://github.com/actions/runner-images/blob/${release_label}/${image_version}/images/macos/${image_label}-Readme.md" + releaseUrl="https://github.com/actions/runner-images/releases/tag/${release_label}%2F${image_version}" +fi cat < $imagedata_file [