mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Ubuntu] Implement helper to get GitHub package download URL (#4947)
This commit is contained in:
committed by
GitHub
parent
cb8931646f
commit
404da76e17
@@ -6,7 +6,7 @@ source $HELPER_SCRIPTS/install.sh
|
||||
YQ_BINARY=yq_linux_amd64
|
||||
|
||||
# As per https://github.com/mikefarah/yq#wget
|
||||
YQ_URL=$(curl -s https://api.github.com/repos/mikefarah/yq/releases/latest | jq -r ".assets[].browser_download_url | select(endswith(\"$YQ_BINARY.tar.gz\"))")
|
||||
YQ_URL=$(get_github_package_download_url "mikefarah/yq" "endswith(\"$YQ_BINARY.tar.gz\")")
|
||||
echo "Downloading latest yq from $YQ_URL"
|
||||
|
||||
download_with_retries "$YQ_URL" "/tmp" "${YQ_BINARY}.tar.gz"
|
||||
|
||||
Reference in New Issue
Block a user