fix(ci): use fallback hardcoded version of forgetool, in case latest version fetch fails

This commit is contained in:
Kjeld Schouten
2026-06-09 08:39:26 +02:00
parent d89ff0b2f2
commit 386ee44d78
+4 -1
View File
@@ -72,7 +72,10 @@ jobs:
https://api.github.com/repos/trueforge-org/forgetool/releases/latest)"; then
TAG="$(jq -r '.tag_name // empty' <<< "${RELEASES_JSON}")"
fi
[ -n "${TAG}" ] && [ "${TAG}" != "null" ] || { echo "Failed to determine latest stable forgetool release tag"; exit 1; }
[ -n "${TAG}" ] && [ "${TAG}" != "null" ] || {
echo "Failed to determine latest stable forgetool release tag, falling back to v4.1.1"
TAG="v4.1.1"
}
VERSION="${TAG#v}"
VERSION="${VERSION#forgetool-v}"
case "$(uname -m)" in