build: get latest nightly build version from git.flow-control.dev

This commit is contained in:
CJ van den Berg 2025-09-23 13:33:50 +02:00
parent 6a84c222d0
commit bfba9ab810
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -48,7 +48,14 @@ if [ -n "$UNPUSHED" ]; then
fi fi
# get latest version tag # get latest version tag
if [ -z "$NO_FLOWCONTROL" ]; then
last_nightly_version=$(curl -s https://git.flow-control.dev/api/v1/repos/neurocyte/flow-nightly/releases/latest | jq -r .tag_name)
elif [ -z "$NO_GITHUB" ]; then
last_nightly_version=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | jq -r .tag_name) last_nightly_version=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | jq -r .tag_name)
elif [ -z "$NO_CODEBERG" ]; then
last_nightly_version=$(curl -s https://codeberg.org/api/v1/repos/neurocyte/flow-nightly/releases/latest | jq -r .tag_name)
fi
[ -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