GH: fix summary formatting for check-whitespace.yaml

Wrap the git log --check output in a markdown code block to prevent
undesirable formatting.
This commit is contained in:
Andrew Clayton 2026-06-10 18:46:39 +01:00
parent 8bbaf83d48
commit fefae70f63

View file

@ -17,6 +17,7 @@ jobs:
- name: git log --check
run: |
echo "## Whitespace Check Results" >${GITHUB_STEP_SUMMARY}
echo '```' >>${GITHUB_STEP_SUMMARY}
err=0
commit=
while read dash hash subj
@ -42,6 +43,7 @@ jobs:
;;
esac
done <<< $(git log --check --pretty=format:"--- %h %s" ${{github.event.pull_request.base.sha}}..)
echo '```' >>${GITHUB_STEP_SUMMARY}
if test ${err} -ne 0
then