mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 06:40:32 +00:00
Use direct link to download latest yq version (#5689)
This commit is contained in:
committed by
GitHub
parent
184da3fa5c
commit
d63f3cf0f4
@@ -3,14 +3,8 @@
|
|||||||
# Source the helpers for use with the script
|
# Source the helpers for use with the script
|
||||||
source $HELPER_SCRIPTS/install.sh
|
source $HELPER_SCRIPTS/install.sh
|
||||||
|
|
||||||
YQ_BINARY=yq_linux_amd64
|
YQ_URL="https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64"
|
||||||
|
download_with_retries "$YQ_URL" "/usr/bin" "yq"
|
||||||
# As per https://github.com/mikefarah/yq#wget
|
chmod +x /usr/bin/yq
|
||||||
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"
|
|
||||||
tar xzf "/tmp/${YQ_BINARY}.tar.gz" -C "/tmp"
|
|
||||||
mv /tmp/${YQ_BINARY} /usr/bin/yq
|
|
||||||
|
|
||||||
invoke_tests "Tools" "yq"
|
invoke_tests "Tools" "yq"
|
||||||
|
|||||||
Reference in New Issue
Block a user