From 196b939ca78b2505f3d1f12715a9d73be5851456 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sat, 17 Jan 2026 19:26:24 +0100 Subject: [PATCH] Updated workflow again --- .gitea/workflows/pull_request.yaml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index e6de9fa..6073d8d 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -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