mirror of
https://github.com/nginx/nginx.git
synced 2026-06-30 05:43:02 +00:00
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:
parent
8bbaf83d48
commit
fefae70f63
1 changed files with 2 additions and 0 deletions
2
.github/workflows/check-whitespace.yaml
vendored
2
.github/workflows/check-whitespace.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue