Merge pull request #2035 from maxim-lobanov/v-malob/fix-tag-name

Fix image link in initialize job step
This commit is contained in:
Maxim Lobanov
2020-11-12 10:48:41 +03:00
committed by GitHub

View File

@@ -9,10 +9,10 @@ os_version=$(sw_vers -productVersion)
os_build=$(sw_vers -buildVersion)
label_version=$(echo $os_version | cut -d. -f1,2)
image_label="macos-${label_version}"
software_url="https://github.com/actions/virtual-environments/blob/${image_label}/${image_version}/images/macos/${image_label}-Readme.md"
release_label="macOS-${label_version}"
software_url="https://github.com/actions/virtual-environments/blob/${release_label}/${image_version}/images/macos/${image_label}-Readme.md"
if is_Catalina || is_BigSur; then
cat <<EOF > $imagedata_file
cat <<EOF > $imagedata_file
[
{
"group": "Operating System",
@@ -24,7 +24,6 @@ if is_Catalina || is_BigSur; then
}
]
EOF
fi
echo "export ImageVersion=$image_version" >> $HOME/.bashrc
echo "export ImageOS=$IMAGE_OS" >> $HOME/.bashrc