]> git.kaiwu.me - nginx.git/commitdiff
GH: fix summary formatting for check-whitespace.yaml
authorAndrew Clayton <a.clayton@nginx.com>
Wed, 10 Jun 2026 17:46:39 +0000 (18:46 +0100)
committerAndrew Clayton <a.clayton@nginx.com>
Wed, 10 Jun 2026 18:23:40 +0000 (19:23 +0100)
Wrap the git log --check output in a markdown code block to prevent
undesirable formatting.

.github/workflows/check-whitespace.yaml

index f95025af4c995de4a00d2dabc7c11b3d689a0964..1070e7212488a2691faa3567876000ecc08dcb6d 100644 (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