diff --git a/action.yml b/action.yml index 2aea181..40742f9 100644 --- a/action.yml +++ b/action.yml @@ -105,6 +105,12 @@ runs: echo "app_source_bin: $app_source_bin" echo "app_target_bin: $app_target_bin" + (set -x; wget --spider --timeout=5 --header='Accept: */*' https://github.com/mikefarah/yq/releases/latest 2>&1) + (set -x; wget --spider --timeout=5 --header='Accept: */*' https://github.com/mikefarah/yq/releases/latest 2>&1 | grep 'Location:') + (set -x; wget --spider --timeout=5 --header='Accept: */*' https://github.com/mikefarah/yq/releases/latest 2>&1 | grep 'Location:' | awk '{print $2}') + (set -x; wget --spider --timeout=5 --header='Accept: */*' https://github.com/mikefarah/yq/releases/latest 2>&1 | grep 'Location:' | awk '{print $2}' | grep -o '[^/]*$') + (set -x; wget --spider --timeout=5 --header='Accept: */*' https://github.com/mikefarah/yq/releases/latest 2>&1 | grep 'Location:' | awk '{print $2}' | grep -o '[^/]*$' | cut -c2-) + function get_latest_version() { # currently broken because of https://github.com/curl/curl/issues/13845 # (set -x; curl -sSfL --max-time 5 -o /dev/null -w '%{url_effective}' $APP_REPO_ROOT/releases/latest | grep -o '[^/]*$' | cut -c2-)