From bfba9ab81033f154171824934ef52cc9a84123e9 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 23 Sep 2025 13:33:50 +0200 Subject: [PATCH] build: get latest nightly build version from git.flow-control.dev --- contrib/make_nightly_build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/contrib/make_nightly_build b/contrib/make_nightly_build index 95be193..eda0a1e 100755 --- a/contrib/make_nightly_build +++ b/contrib/make_nightly_build @@ -48,7 +48,14 @@ if [ -n "$UNPUSHED" ]; then fi # get latest version tag -last_nightly_version=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | jq -r .tag_name) + +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) +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" ] && { echo "failed to fetch $title latest version" exit 1