From b5453d9ced604333622a73b0dbad1127ffd3b74e Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sat, 17 Jan 2026 19:49:46 +0100 Subject: [PATCH] Added fetch --- .gitea/workflows/pull_request.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 11201ec..5abc714 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -87,10 +87,12 @@ jobs: - name: Format code if: failure() run: | + git fetch origin ${{ gitea.head_ref }} git checkout ${{ gitea.head_ref }} + dart fix --apply lib dart fix --apply test - # Prüfen, ob Änderungen vorhanden sind + if [ -n "$(git status --porcelain lib test)" ]; then git config --global user.name "liquid-actions[bot]" git config --global user.email "gitea@liquid-dev.de"