Godot auto build
This commit is contained in:
@@ -14,7 +14,8 @@ jobs:
|
||||
echo "🔍 Parsing project.godot to identify the target engine version..."
|
||||
|
||||
# Extracts the first value out of config/features (e.g., "4.7")
|
||||
VERSION_SHORT=$(grep "config/features" project.godot | sed -E 's/.*"([^"]+)".*/\1/')
|
||||
# Finds the line, isolates the contents of the first set of quotes, and strips spaces
|
||||
VERSION_SHORT=$(grep "config/features" project.godot | sed -E 's/^[^\"]*\"([^\"]+)\".*/\1/' | xargs)
|
||||
|
||||
if [ -z "$VERSION_SHORT" ]; then
|
||||
echo "❌ Error: Could not determine Godot version from project.godot. Defaulting to 4.7"
|
||||
|
||||
Reference in New Issue
Block a user