mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 10:28:10 +08:00
update get_github_package_download_url helper (#5051)
This commit is contained in:
committed by
GitHub
parent
a9fba6b110
commit
52011e5c44
@@ -2,7 +2,7 @@
|
||||
source ~/utils/utils.sh
|
||||
|
||||
echo Installing PowerShell...
|
||||
psDownloadUrl=$(get_github_package_download_url "PowerShell" "PowerShell" "contains(\"osx-x64.pkg\")" "latest" "$API_PAT")
|
||||
psDownloadUrl=$(get_github_package_download_url "PowerShell/PowerShell" "contains(\"osx-x64.pkg\")" "latest" "$API_PAT")
|
||||
download_with_retries $psDownloadUrl "/tmp" "powershell.pkg"
|
||||
|
||||
# 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
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
source ~/utils/utils.sh
|
||||
|
||||
echo "Get the latest Stack version..."
|
||||
stackDownloadUrl=$(get_github_package_download_url "commercialhaskell" "stack" "contains(\"osx-x86_64.tar.gz\")" "latest" "$API_PAT")
|
||||
stackDownloadUrl=$(get_github_package_download_url "commercialhaskell/stack" "contains(\"osx-x86_64.tar.gz\")" "latest" "$API_PAT")
|
||||
stackVersion=$(echo $stackDownloadUrl | cut -d "/" -f8 | tr -d "v")
|
||||
stackArchive="/tmp/stack.tar.gz"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
source ~/utils/utils.sh
|
||||
|
||||
echo "Install SwiftLint"
|
||||
swiftlintUrl=$(get_github_package_download_url "realm" "SwiftLint" "contains(\"portable_swiftlint.zip\")" "latest" "$API_PAT")
|
||||
swiftlintUrl=$(get_github_package_download_url "realm/SwiftLint" "contains(\"portable_swiftlint.zip\")" "latest" "$API_PAT")
|
||||
download_with_retries $swiftlintUrl "/tmp" "portable_swiftlint.zip"
|
||||
unzip -q "/tmp/portable_swiftlint.zip" -d /usr/local/bin
|
||||
# Remove the LICENSE file that comes along with the binary and the downloaded archive
|
||||
|
||||
Reference in New Issue
Block a user