This commit is contained in:
Dmitry 2025-11-20 00:48:07 +03:00
parent 51a2b24937
commit e1844d5835

View file

@ -75,19 +75,25 @@ jobs:
channel: 'stable'
cache: false
- name: Debug Flutter install
- name: Ensure Flutter directory is a git repo
run: |
echo "FLUTTER_ROOT=$FLUTTER_ROOT"
which flutter || echo "flutter not in PATH"
if [ -n "$FLUTTER_ROOT" ]; then
echo "--- ls FLUTTER_ROOT ---"
ls -la "$FLUTTER_ROOT"
echo "--- check .git ---"
ls -la "$FLUTTER_ROOT/.git" || echo "NO .git in FLUTTER_ROOT"
else
echo "FLUTTER_ROOT is empty!"
if [ -z "$FLUTTER_ROOT" ]; then
echo "FLUTTER_ROOT is empty, flutter-action probably didn't run correctly"
exit 1
fi
cd "$FLUTTER_ROOT"
if [ ! -d .git ]; then
echo "Initializing .git in $FLUTTER_ROOT"
git init
# origin не обязателен, но можно добавить для порядка
git remote add origin https://github.com/flutter/flutter.git || true
else
echo ".git already exists in $FLUTTER_ROOT"
fi
flutter --version
- name: Setup SSH
run: |
mkdir -p ~/.ssh