add link to image release (#2783)

This commit is contained in:
Dibir Magomedsaygitov
2021-02-25 14:22:57 +03:00
committed by GitHub
parent d707864e45
commit fdea69d18f
3 changed files with 9 additions and 3 deletions

View File

@@ -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 <<EOF > $imagedata_file
@@ -26,7 +29,7 @@ cat <<EOF > $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