2 Commits

Author SHA1 Message Date
ec6105e01d Merge remote-tracking branch 'origin/setup/44-workflows-um-format-stage-erweitern' into setup/44-workflows-um-format-stage-erweitern
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) Has been cancelled
2026-01-17 19:57:05 +01:00
bfb5debbeb Try sth 2026-01-17 19:56:59 +01:00

View File

@@ -82,10 +82,12 @@ jobs:
run: flutter pub get
- name: Check code format
id: check_format
continue-on-error: true
run: flutter analyze lib test
- name: Format code
if: failure()
if: steps.check_format.outcome == 'failure'
run: |
git fetch origin ${{ gitea.head_ref }}
git checkout ${{ gitea.head_ref }}
@@ -94,11 +96,14 @@ jobs:
dart fix --apply test
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"
git config --global user.name "Gitea Actions [bot]"
git config --global user.email "actions@gitea.com"
git add lib test
git commit -m "Auto-format code"
git push
else
echo "No changes to commit"
fi
- name: Verify format
run: flutter analyze lib test