Skip to content

Commit

Permalink
feat(diff-rendered-charts): Diff new templates
Browse files Browse the repository at this point in the history
If a files is new, diff will output that it is new. The -N option will
diff it to a zero-size file instead.

-N --new-file:
If a file is found in only one directory, act as if it was found in the
other directory too but was of zero size.
  • Loading branch information
jbuck committed Oct 9, 2024
1 parent 7b2852c commit 511384f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/diff-rendered-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
for chart in ${{ needs.get_changed_helm_charts.outputs.charts }}; do
chart_diff_output=$(diff -r "shared/base-charts/${chart}" "shared/head-charts/${chart}" || true)
if [ -n "$chart_diff_output" ]; then
echo -e "Changes found in chart: ${chart}\n$(diff -ru shared/base-charts/${chart} shared/head-charts/${chart})\n" >> diff.log
echo -e "Changes found in chart: ${chart}\n$(diff -ruN shared/base-charts/${chart} shared/head-charts/${chart})\n" >> diff.log
fi
done
- name: post diff as comment on pull request
Expand Down

0 comments on commit 511384f

Please sign in to comment.