build: get latest nightly build version from git.flow-control.dev
This commit is contained in:
parent
6a84c222d0
commit
bfba9ab810
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue