Skip to content

Commit

Permalink
build: follow link to get correct data (#204)
Browse files Browse the repository at this point in the history
Signed-off-by: Moriarty <[email protected]>
  • Loading branch information
morrieinmaas authored Jun 29, 2022
1 parent bc3f973 commit b184025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/brew-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }')
Expand Down

0 comments on commit b184025

Please sign in to comment.