Fix 1-click install tag version (#8709)

Followup of #8689
This commit is contained in:
Félix Malfait
2024-11-24 19:08:04 +01:00
committed by GitHub
parent 3f1683f8b9
commit 37970c08a9

View File

@ -44,7 +44,7 @@ function on_exit {
trap on_exit EXIT
# Use environment variables VERSION and BRANCH, with defaults if not set
version=${VERSION:-$(curl -s https://api.github.com/repos/twentyhq/twenty/releases/latest | grep '"tag_name":' | cut -d '"' -f 4)}
version=${VERSION:-$(curl -s https://api.github.com/repos/twentyhq/twenty/tags | grep '"name":' | head -n 1 | cut -d '"' -f 4)}
branch=${BRANCH:-$version}
echo "🚀 Using version $version and branch $branch"