Skip to content

Commit

Permalink
ci: remove .config diff when the same
Browse files Browse the repository at this point in the history
ignore .config if there is no change

Signed-off-by: Robert Gałat <[email protected]>
  • Loading branch information
RobertGalatNordic committed Apr 15, 2024
1 parent 154c40b commit dce5041
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/on-pr_publish_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,18 @@ jobs:
python3 scripts/ci/compare_size_reports.py -o old.json -n new.json --md_output --show_only_diff > memory_usage.md
- name: Generate .config diff
shell: bash {0}
run: |
cd current
configs=$(find . -name .config)
cd ..
echo "<details><summary>.config diff</summary>" >> memory_usage.md
for cfg in configs
do
printf "\n\n%s\n%-75s|%s\n" "${cfg}" "old" "new" >> memory_usage.md
diff --text --report-identical-files --suppress-common-lines --side-by-side --label old --label new <(sort old/${cfg}) <(sort current/${cfg}) >> memory_usage.md
printf "\n\n%s\n%-75s|%s\n" "${cfg}" "old" "new" >> tmp.md
diff --text --report-identical-files --suppress-common-lines --side-by-side --label old --label new <(sort old/${cfg}) <(sort current/${cfg}) >> tmp.md
if [ $? -eq 1 ]; then cat tmp.md >> memory_usage.md fi
rm tmp.md
done
echo "<\details>" >> memory_usage.md
Expand Down

0 comments on commit dce5041

Please sign in to comment.