Skip to content

Commit 511384f

Browse files
committedOct 9, 2024··
feat(diff-rendered-charts): Diff new templates
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.
·
v4.0.6v3.12.0
1 parent 7b2852c commit 511384f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎.github/workflows/diff-rendered-charts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
for chart in ${{ needs.get_changed_helm_charts.outputs.charts }}; do
121121
chart_diff_output=$(diff -r "shared/base-charts/${chart}" "shared/head-charts/${chart}" || true)
122122
if [ -n "$chart_diff_output" ]; then
123-
echo -e "Changes found in chart: ${chart}\n$(diff -ru shared/base-charts/${chart} shared/head-charts/${chart})\n" >> diff.log
123+
echo -e "Changes found in chart: ${chart}\n$(diff -ruN shared/base-charts/${chart} shared/head-charts/${chart})\n" >> diff.log
124124
fi
125125
done
126126
- name: post diff as comment on pull request

0 commit comments

Comments
 (0)
Please sign in to comment.