Updated workflow again
This commit is contained in:
@@ -18,7 +18,7 @@ jobs:
|
||||
|
||||
- name: Install Flutter (wget)
|
||||
run: |
|
||||
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||
wget --quiet https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||
tar xf flutter_linux_3.38.2-stable.tar.xz
|
||||
# Set Git safe directory for Flutter path
|
||||
git config --global --add safe.directory "$(pwd)/flutter"
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
|
||||
- name: Install Flutter (wget)
|
||||
run: |
|
||||
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||
wget --quiet https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||
tar xf flutter_linux_3.38.2-stable.tar.xz
|
||||
# Set Git safe directory for Flutter path
|
||||
git config --global --add safe.directory "$(pwd)/flutter"
|
||||
@@ -71,7 +71,7 @@ jobs:
|
||||
|
||||
- name: Install Flutter (wget)
|
||||
run: |
|
||||
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||
wget --quiet https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||
tar xf flutter_linux_3.38.2-stable.tar.xz
|
||||
# Set Git safe directory for Flutter path
|
||||
git config --global --add safe.directory "$(pwd)/flutter"
|
||||
@@ -88,8 +88,13 @@ jobs:
|
||||
if: failure()
|
||||
run: |
|
||||
dart fix --apply
|
||||
git config --global user.name "liquid-actions[bot]"
|
||||
git config --global user.email "gitea@liquid-dev.de"
|
||||
git add .
|
||||
git commit -m "Auto-format code"
|
||||
git push
|
||||
# Prüfen, ob Änderungen vorhanden sind
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
git config --global user.name "liquid-actions[bot]"
|
||||
git config --global user.email "gitea@liquid-dev.de"
|
||||
git add .
|
||||
git commit -m "Auto-format code"
|
||||
git push
|
||||
else
|
||||
echo "No changes to commit"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user