build: read github tag name with jq in make_nightly_build
This commit is contained in:
parent
a870254166
commit
366dde0144
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue