mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-08 00:04:54 +08:00
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:
parent
c26c163d73
commit
254c586beb
6
.github/workflows/format-check-dart.yml
vendored
6
.github/workflows/format-check-dart.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user