Don't run incremental build when there are no changes in packages (#1768)
diff --git a/script/incremental_build.sh b/script/incremental_build.sh
index c3a3941..313d123 100755
--- a/script/incremental_build.sh
+++ b/script/incremental_build.sh
@@ -21,8 +21,7 @@
check_changed_packages
if [[ "$CHANGED_PACKAGES" == "" ]]; then
- echo "Running for all packages"
- (cd "$REPO_DIR" && pub global run flutter_plugin_tools "${ACTIONS[@]}" $PLUGIN_SHARDING)
+ echo "No changes detected in packages."
else
(cd "$REPO_DIR" && pub global run flutter_plugin_tools "${ACTIONS[@]}" --plugins="$CHANGED_PACKAGES" $PLUGIN_SHARDING)
fi