Skip to content

Commit 5f03230

Browse files
committed
fix: parse sidecar release tag from json
1 parent 8962310 commit 5f03230

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/fetch-sidecar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fi
3838
if [[ "$VERSION" == "latest" ]]; then
3939
if [[ -n "${GITHUB_TOKEN:-}" ]]; then
4040
VERSION=$(curl "${curl_args[@]}" "https://api.github.com/repos/${REPO}/releases/latest" \
41-
| grep '"tag_name"' | head -1 | sed 's/.*"tag_name": "\(.*\)".*/\1/')
41+
| python3 -c 'import json, sys; print(json.load(sys.stdin)["tag_name"])')
4242
else
4343
VERSION=$(curl --retry 5 --retry-delay 2 --retry-all-errors -fsSIL -o /dev/null -w '%{url_effective}' \
4444
"https://github.com/${REPO}/releases/latest")

0 commit comments

Comments
 (0)