build: read github tag name with jq in make_nightly_build

This commit is contained in:
CJ van den Berg 2025-09-23 13:04:40 +02:00
parent a870254166
commit 366dde0144
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -39,8 +39,8 @@ if [ -n "$UNPUSHED" ]; then
exit 1 exit 1
fi fi
# get latest version tag from github releases api # get latest version tag
last_nightly_version=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | grep '"tag_name":' | cut -d'"' -f4) last_nightly_version=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | jq -r .tag_name)
[ -z "$last_nightly_version" ] && { [ -z "$last_nightly_version" ] && {
echo "failed to fetch $title latest version" echo "failed to fetch $title latest version"
exit 1 exit 1