update regex

This commit is contained in:
Dan Field
2018-10-18 14:50:31 -07:00
parent 8a711b9025
commit 60f3635493

View File

@ -21,14 +21,14 @@ fi
if [[ "$CHANGED_PACKAGES" == "" ]]; then
echo "Running for all packages"
if [[ grep -q "flutter" "${REPO_DIR}/pubspec.yaml"]]; then
if [[ grep -q "flutter:" "${REPO_DIR}/pubspec.yaml"]]; then
(cd "$REPO_DIR" && pub global run flutter_plugin_tools "${ACTIONS[@]}" $BUILD_SHARDING)
else
(cd "$REPO_DIR" && dartanalyzer . && pub get && pub run test && pub publish --dry-run)
fi
else
echo "Running for ${CHANGED_PACKAGES}"
if [[ grep -q "flutter" "${REPO_DIR}/pubspec.yaml"]]; then
if [[ grep -q "flutter:" "${REPO_DIR}/pubspec.yaml"]]; then
(cd "$REPO_DIR" && pub global run flutter_plugin_tools "${ACTIONS[@]}" --plugins="$CHANGED_PACKAGES" $BUILD_SHARDING)
else
(cd "$REPO_DIR" && dartanalyzer . && pub get && pub run test && pub publish --dry-run)