You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixtures_url=$(echo "$json" | python3 -c "import sys,json; j=json.load(sys.stdin); print(next(a.get('browser_download_url') for a in j.get('assets',[]) if a.get('name')=='fixtures-prod-scheme.tar.gz'))")
17
-
sha_url=$(echo "$json" | python3 -c "import sys,json; j=json.load(sys.stdin); print(next(a.get('browser_download_url') for a in j.get('assets',[]) if a.get('name')=='fixtures-prod-scheme.tar.gz.sha256'))")
18
-
sha=$(curl -sL "$sha_url" | cut -d' ' -f1)
20
+
21
+
# -f fails on HTTP errors (so an error body is never captured as data) and
22
+
# --retry rides out transient network/5xx hiccups. Fail loudly, since a
23
+
# command substitution in an assignment does not trip `set -e` on its own.
|| { echo "::error::Failed to fetch leanSpec latest release metadata from $api_url"; exit 1; }
29
+
30
+
asset_url() {
31
+
echo "$json" | python3 -c \
32
+
"import sys,json; name=sys.argv[1]; j=json.load(sys.stdin); print(next(a['browser_download_url'] for a in j.get('assets',[]) if a.get('name')==name))" \
0 commit comments