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