Skip to content

Commit

Permalink
Fix Homebrew release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoWilken committed Nov 8, 2021
1 parent 2c6eefd commit d5c09f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit d5c09f1

Please sign in to comment.