diff --git a/images/linux/scripts/installers/preimagedata.sh b/images/linux/scripts/installers/preimagedata.sh index d9f7b22fe..39af51787 100644 --- a/images/linux/scripts/installers/preimagedata.sh +++ b/images/linux/scripts/installers/preimagedata.sh @@ -8,14 +8,17 @@ github_url="https://github.com/actions/virtual-environments/blob" if [[ "$image_label" =~ "ubuntu-20" ]]; then software_url="${github_url}/ubuntu20/${image_version}/images/linux/Ubuntu2004-README.md" + releaseUrl="https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F${imageVersion}" fi if [[ "$image_label" =~ "ubuntu-18" ]]; then software_url="${github_url}/ubuntu18/${image_version}/images/linux/Ubuntu1804-README.md" + releaseUrl="https://github.com/actions/virtual-environments/releases/tag/ubuntu18%2F${imageVersion}" fi if [[ "$image_label" =~ "ubuntu-16" ]]; then software_url="${github_url}/ubuntu16/${image_version}/images/linux/Ubuntu1604-README.md" + releaseUrl="https://github.com/actions/virtual-environments/releases/tag/ubuntu16%2F${imageVersion}" fi cat < $imagedata_file @@ -26,7 +29,7 @@ cat < $imagedata_file }, { "group": "Virtual Environment", - "detail": "Environment: ${image_label}\nVersion: ${image_version}\nIncluded Software: ${software_url}" + "detail": "Environment: ${image_label}\nVersion: ${image_version}\nIncluded Software: ${software_url}\nImage Release: ${releaseUrl}" } ] EOF diff --git a/images/macos/provision/configuration/preimagedata.sh b/images/macos/provision/configuration/preimagedata.sh index 92873d9d9..202208867 100644 --- a/images/macos/provision/configuration/preimagedata.sh +++ b/images/macos/provision/configuration/preimagedata.sh @@ -11,6 +11,7 @@ label_version=$(echo $os_version | cut -d. -f1,2) image_label="macos-${label_version}" release_label="macOS-${label_version}" software_url="https://github.com/actions/virtual-environments/blob/${release_label}/${image_version}/images/macos/${image_label}-Readme.md" +releaseUrl="https://github.com/actions/virtual-environments/releases/tag/${release_label}%2F${image_version}" cat < $imagedata_file [ @@ -20,7 +21,7 @@ cat < $imagedata_file }, { "group": "Virtual Environment", - "detail": "Environment: ${image_label}\nVersion: ${image_version}\nIncluded Software: ${software_url}" + "detail": "Environment: ${image_label}\nVersion: ${image_version}\nIncluded Software: ${software_url}\nImage Release: ${releaseUrl}" } ] EOF diff --git a/images/win/scripts/Installers/Update-ImageData.ps1 b/images/win/scripts/Installers/Update-ImageData.ps1 index 7cbffec0d..e8b809748 100644 --- a/images/win/scripts/Installers/Update-ImageData.ps1 +++ b/images/win/scripts/Installers/Update-ImageData.ps1 @@ -11,12 +11,14 @@ if ($caption -match "2019") { $imageLabel = "windows-2019" $softwareUrl = "${githubUrl}/win19/${imageVersion}/images/win/Windows2019-Readme.md" + $releaseUrl="https://github.com/actions/virtual-environments/releases/tag/win19%2F${imageVersion}" } if ($caption -match "2016") { $imageLabel = "windows-2016" $softwareUrl = "${githubUrl}/win16/${imageVersion}/images/win/Windows2016-Readme.md" + $releaseUrl="https://github.com/actions/virtual-environments/releases/tag/win16%2F${imageVersion}" } $json = @" @@ -27,7 +29,7 @@ $json = @" }, { "group": "Virtual Environment", - "detail": "Environment: ${imageLabel}\nVersion: ${imageVersion}\nIncluded Software: ${softwareUrl}" + "detail": "Environment: ${imageLabel}\nVersion: ${imageVersion}\nIncluded Software: ${softwareUrl}\nImage Release: ${releaseUrl}" } ] "@