Added fetch
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Failing after 2m16s

This commit is contained in:
2026-01-17 19:49:46 +01:00
parent 6a79b7cad9
commit b5453d9ced

View File

@@ -87,10 +87,12 @@ jobs:
- name: Format code - name: Format code
if: failure() if: failure()
run: | run: |
git fetch origin ${{ gitea.head_ref }}
git checkout ${{ gitea.head_ref }} git checkout ${{ gitea.head_ref }}
dart fix --apply lib dart fix --apply lib
dart fix --apply test dart fix --apply test
# Prüfen, ob Änderungen vorhanden sind
if [ -n "$(git status --porcelain lib test)" ]; then if [ -n "$(git status --porcelain lib test)" ]; then
git config --global user.name "liquid-actions[bot]" git config --global user.name "liquid-actions[bot]"
git config --global user.email "gitea@liquid-dev.de" git config --global user.email "gitea@liquid-dev.de"