From 52323d295a03b989caf3359f2ced2ea213732f83 Mon Sep 17 00:00:00 2001 From: sebthom Date: Fri, 19 Jul 2024 19:58:25 +0200 Subject: [PATCH] test --- .github/workflows/build.yml | 3 ++- action.yml | 8 +------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc0c5a8..2b3e3bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,8 @@ jobs: matrix: os: - ubuntu-latest - - macos-latest + - macos-12 # x64 + - macos-latest # ARM - windows-latest steps: diff --git a/action.yml b/action.yml index 259e6af..2aea181 100644 --- a/action.yml +++ b/action.yml @@ -105,17 +105,11 @@ runs: echo "app_source_bin: $app_source_bin" echo "app_target_bin: $app_target_bin" - (set -x; wget --spider --max-redirect=0 --timeout=5 --header='Accept: */*' https://github.com/mikefarah/yq/releases/latest 2>&1) - (set -x; wget --spider --max-redirect=0 --timeout=5 --header='Accept: */*' https://github.com/mikefarah/yq/releases/latest 2>&1 | grep 'Location:') - (set -x; wget --spider --max-redirect=0 --timeout=5 --header='Accept: */*' https://github.com/mikefarah/yq/releases/latest 2>&1 | grep 'Location:' | awk '{print $2}') - (set -x; wget --spider --max-redirect=0 --timeout=5 --header='Accept: */*' https://github.com/mikefarah/yq/releases/latest 2>&1 | grep 'Location:' | awk '{print $2}' | grep -o '[^/]*$') - (set -x; wget --spider --max-redirect=0 --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-) - (set -x; wget --spider --max-redirect=0 --timeout=5 --header='Accept: */*' https://github.com/mikefarah/yq/releases/latest 2>&1 | grep 'Location:' | awk '{print $2}' | grep -o '[^/]*$' | cut -c2-) + (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-) } app_downloaded=false