mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-23 10:11:23 +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
|
- name: Check for changes
|
||||||
run: |
|
run: |
|
||||||
git ls-files -m
|
# Ignore generated files that might change during flutter pub get
|
||||||
if [[ `git ls-files -m` ]]; then
|
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 "Detected Dart formatting errors!"
|
||||||
echo "Creating diff files..."
|
echo "Creating diff files..."
|
||||||
mkdir -p dart-format-diff
|
mkdir -p dart-format-diff
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user