From b184025d1f33f92feba9d3ba64200b9c091e96f5 Mon Sep 17 00:00:00 2001 From: Mo <10432473+morrieinmaas@users.noreply.github.com> Date: Wed, 29 Jun 2022 09:12:30 +0200 Subject: [PATCH] build: follow link to get correct data (#204) Signed-off-by: Moriarty --- .github/workflows/brew-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/brew-release.yml b/.github/workflows/brew-release.yml index bb5a6f16..2e496059 100644 --- a/.github/workflows/brew-release.yml +++ b/.github/workflows/brew-release.yml @@ -18,8 +18,8 @@ jobs: - name: Gather data and rewrite ruby file id: gather_data_and_rewrite run: | - VERSION=$(curl --silent https://api.github.com/repos/animo/aries-cli/releases | jq '.[-1]' | jq -r .tag_name) - URLS=$(curl --silent https://api.github.com/repos/animo/aries-cli/releases | jq -r '.[] .assets[].browser_download_url' | grep "apple") # two lines with 1 download url each + VERSION=$(curl -L --silent https://api.github.com/repos/animo/aries-cli/releases | jq '.[-1]' | jq -r .tag_name) + URLS=$(curl -L --silent https://api.github.com/repos/animo/aries-cli/releases | jq -r '.[] .assets[].browser_download_url' | grep "apple") # two lines with 1 download url each URL_ARM=$(echo $URLS | grep -m1 "arm" | awk '{ print $1 }') URL_X86=$(echo $URLS | grep -m1 "x86" | awk '{ print $2 }') SHA_ARM=$(curl -L --silent $URL_ARM | shasum -a 256 | awk '{ print $1 }')