Ignore GeneratedPluginRegistrant files when checking for format changes

These are auto-generated files that can change when running flutter pub get
and shouldn't fail the formatting check.
This commit is contained in:
Mario Zechner 2025-08-28 14:49:20 +02:00
parent c26c163d73
commit 254c586beb

View File

@ -35,8 +35,10 @@ jobs:
- name: Check for changes
run: |
git ls-files -m
if [[ `git ls-files -m` ]]; then
# Ignore generated files that might change during flutter pub get
git ls-files -m | grep -v "GeneratedPluginRegistrant" > /tmp/modified_files || true
if [ -s /tmp/modified_files ]; then
cat /tmp/modified_files
echo "Detected Dart formatting errors!"
echo "Creating diff files..."
mkdir -p dart-format-diff