Skip to content

Commit

Permalink
Try with -b flag GA
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofVDB1 committed Dec 20, 2023
1 parent c605cff commit fcf26b7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/diff_generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fcf26b7

Please sign in to comment.