mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
[macOS] pin pwsh-core in toolset (#9070)
This commit is contained in:
@@ -10,8 +10,16 @@ echo Installing PowerShell...
|
|||||||
arch=$(get_arch)
|
arch=$(get_arch)
|
||||||
|
|
||||||
metadata_json_path=$(download_with_retry "https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/metadata.json")
|
metadata_json_path=$(download_with_retry "https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/metadata.json")
|
||||||
version=$(jq -r '.LTSReleaseTag[0]' "$metadata_json_path")
|
pwshVersionToolset=$(get_toolset_value '.pwsh.version')
|
||||||
|
pwshVersions=$(jq -r '.LTSReleaseTag[]' "$metadata_json_path")
|
||||||
|
|
||||||
|
for version in ${pwshVersions[@]}; do
|
||||||
|
if [[ "$version" =~ "$pwshVersionToolset" ]]; then
|
||||||
download_url=$(resolve_github_release_asset_url "PowerShell/PowerShell" "contains(\"osx-$arch.pkg\")" "$version" "$API_PAT")
|
download_url=$(resolve_github_release_asset_url "PowerShell/PowerShell" "contains(\"osx-$arch.pkg\")" "$version" "$API_PAT")
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
pkg_path=$(download_with_retry "$download_url")
|
pkg_path=$(download_with_retry "$download_url")
|
||||||
|
|
||||||
# Work around the issue on macOS Big Sur 11.5 or higher for possible error message ("can't be opened because Apple cannot check it for malicious software") when installing the package
|
# Work around the issue on macOS Big Sur 11.5 or higher for possible error message ("can't be opened because Apple cannot check it for malicious software") when installing the package
|
||||||
|
|||||||
@@ -361,5 +361,8 @@
|
|||||||
},
|
},
|
||||||
"postgresql": {
|
"postgresql": {
|
||||||
"version": "14"
|
"version": "14"
|
||||||
|
},
|
||||||
|
"pwsh": {
|
||||||
|
"version": "7.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -349,5 +349,8 @@
|
|||||||
},
|
},
|
||||||
"postgresql": {
|
"postgresql": {
|
||||||
"version": "14"
|
"version": "14"
|
||||||
|
},
|
||||||
|
"pwsh": {
|
||||||
|
"version": "7.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -234,5 +234,8 @@
|
|||||||
"version": "3.15.4",
|
"version": "3.15.4",
|
||||||
"sha256": "356dab61433b5be76b76fd0e2e979bda56d164f6d85a900e55c3a4a5fffa28de"
|
"sha256": "356dab61433b5be76b76fd0e2e979bda56d164f6d85a900e55c3a4a5fffa28de"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"pwsh": {
|
||||||
|
"version": "7.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,6 +126,9 @@
|
|||||||
"php": {
|
"php": {
|
||||||
"version": "8.3"
|
"version": "8.3"
|
||||||
},
|
},
|
||||||
|
"pwsh": {
|
||||||
|
"version": "7.2"
|
||||||
|
},
|
||||||
"mono": {
|
"mono": {
|
||||||
"framework":{
|
"framework":{
|
||||||
"version": "6.12.0.188",
|
"version": "6.12.0.188",
|
||||||
|
|||||||
Reference in New Issue
Block a user