We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8962310 commit 5f03230Copy full SHA for 5f03230
1 file changed
scripts/fetch-sidecar.sh
@@ -38,7 +38,7 @@ fi
38
if [[ "$VERSION" == "latest" ]]; then
39
if [[ -n "${GITHUB_TOKEN:-}" ]]; then
40
VERSION=$(curl "${curl_args[@]}" "https://api.github.com/repos/${REPO}/releases/latest" \
41
- | grep '"tag_name"' | head -1 | sed 's/.*"tag_name": "\(.*\)".*/\1/')
+ | python3 -c 'import json, sys; print(json.load(sys.stdin)["tag_name"])')
42
else
43
VERSION=$(curl --retry 5 --retry-delay 2 --retry-all-errors -fsSIL -o /dev/null -w '%{url_effective}' \
44
"https://github.com/${REPO}/releases/latest")
0 commit comments