Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jul 19, 2024
1 parent 413d0f3 commit 02f0d10
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,10 @@ 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() {
# temporary workaround for https://github.com/curl/curl/issues/13845
if [[ $RUNNER_OS == "Windows" ]]; then
Windows)
(set -x; powershell -Command "(Invoke-WebRequest -Uri '$APP_REPO_ROOT/releases/latest' -Method Head -MaximumRedirection 0 -ErrorAction Ignore -UseBasicParsing).Headers.Location")
;;
(set -x; powershell -Command "(Invoke-WebRequest -Uri '$APP_REPO_ROOT/releases/latest' -Method Head -MaximumRedirection 0 -ErrorAction Ignore -UseBasicParsing).Headers.Location")
return
fi
Expand Down

0 comments on commit 02f0d10

Please sign in to comment.