From d5c09f18f88ab76c671b6e619433066492191efe Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Mon, 8 Nov 2021 10:52:33 +0100 Subject: [PATCH] Fix Homebrew release workflow --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5ec68a9..b40fff3b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,9 +35,9 @@ jobs: run: | set -x cd "$(dirname "$(brew formula alibuild)")" - IFS=$'\n' read -r sha url < \ - <(curl -fSsL "https://pypi.org/pypi/alibuild/${GITHUB_REF#refs/tags/}/json" | - jq -r '.urls[0] | (.digests.sha256, .url)') + json=$(curl -fSsL "https://pypi.org/pypi/alibuild/${GITHUB_REF#refs/tags/}/json") + sha=$(echo "$json" | jq -r '.urls[0].digests.sha256) + url=$(echo "$json" | jq -r '.urls[0].url) # Replace keys with two leading spaces only, so we get the toplevel # ones applying to alibuild, not those for dependencies. sed -i.bak "