From fcf26b75d1edabe844f1b15a418d606d956c52f0 Mon Sep 17 00:00:00 2001 From: Kristof Vandenbroucke Date: Wed, 20 Dec 2023 12:07:59 +0100 Subject: [PATCH] Try with `-b` flag GA --- .github/workflows/diff_generator.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/diff_generator.yml b/.github/workflows/diff_generator.yml index dac2b00..1e95298 100644 --- a/.github/workflows/diff_generator.yml +++ b/.github/workflows/diff_generator.yml @@ -39,17 +39,23 @@ jobs: shell: bash run: | identical_files="" + different_files="" for file in $(find source -type f | grep -v ".git"); do target_file=${file/source/target} if [ -f "$target_file" ]; then - diff_output=$(diff -q "$file" "$target_file" | cat -t || true) - if not [[ $diff_output == *"differ"* ]]; then + diff_output=$(diff -b "$file" "$target_file" | cat -t || true) + if [[ $diff_output == *"differ"* ]]; then + different_files+="$file\n" + else identical_files+="$file\n" fi fi done echo "Identical files:" echo -e "$identical_files" + echo "---------------------------------------------------" + echo "Different files:" + echo -e "$different_files" # - name: Commit and push diff # run: | # cd source