Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/scripts/validate-formatting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
# limitations under the License.
set -e

if [[ $(git ls-files --modified) ]]; then
# Get modified files, excluding pubspec.lock.
# The '|| true' prevents the script from exiting if grep finds no matches.
MODIFIED_FILES=$(git ls-files --modified | grep -v '^pubspec.lock$' || true)

if [[ $MODIFIED_FILES ]]; then
echo ""
echo ""
echo "These files are not formatted correctly:"
Expand Down
Loading