fix(ci): use fallback hardcoded version of forgetool, in case latest version fetch fails
This commit is contained in:
@@ -72,7 +72,10 @@ jobs:
|
|||||||
https://api.github.com/repos/trueforge-org/forgetool/releases/latest)"; then
|
https://api.github.com/repos/trueforge-org/forgetool/releases/latest)"; then
|
||||||
TAG="$(jq -r '.tag_name // empty' <<< "${RELEASES_JSON}")"
|
TAG="$(jq -r '.tag_name // empty' <<< "${RELEASES_JSON}")"
|
||||||
fi
|
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="${TAG#v}"
|
||||||
VERSION="${VERSION#forgetool-v}"
|
VERSION="${VERSION#forgetool-v}"
|
||||||
case "$(uname -m)" in
|
case "$(uname -m)" in
|
||||||
|
|||||||
Reference in New Issue
Block a user