[macos] Fix preimage data (#13400)

This commit is contained in:
Shamil Mubarakshin
2025-12-08 17:17:57 +01:00
committed by GitHub
parent 0e1bcaf604
commit b3681d0108

View File

@@ -9,6 +9,8 @@ source ~/utils/utils.sh
arch=$(get_arch) arch=$(get_arch)
imagedata_file="$HOME/imagedata.json" imagedata_file="$HOME/imagedata.json"
image_version=$(echo $IMAGE_VERSION | cut -d _ -f 2) image_version=$(echo $IMAGE_VERSION | cut -d _ -f 2)
image_version_major=${image_version/.*/}
image_version_minor=$(echo $image_version | cut -d "." -f 2)
os_name=$(sw_vers -productName) os_name=$(sw_vers -productName)
os_version=$(sw_vers -productVersion) os_version=$(sw_vers -productVersion)
os_build=$(sw_vers -buildVersion) os_build=$(sw_vers -buildVersion)
@@ -20,8 +22,8 @@ else
image_label="macos-${label_version}" image_label="macos-${label_version}"
fi fi
software_url="https://github.com/actions/runner-images/blob/${image_label}/${image_version}/images/macos/${image_label}-Readme.md" software_url="https://github.com/actions/runner-images/blob/${image_label}/${image_version_major}.${image_version_minor}/images/macos/${image_label}-Readme.md"
releaseUrl="https://github.com/actions/runner-images/releases/tag/${image_label}%2F${image_version}" releaseUrl="https://github.com/actions/runner-images/releases/tag/${image_label}%2F${image_version_major}.${image_version_minor}"
cat <<EOF > $imagedata_file cat <<EOF > $imagedata_file
[ [