]> git.kaiwu.me - nginx.git/commitdiff
GH: fix check-whitespace.yaml error return with multiple commits
authorAndrew Clayton <a.clayton@nginx.com>
Thu, 11 Jun 2026 05:15:32 +0000 (06:15 +0100)
committerAndrew Clayton <a.clayton@nginx.com>
Thu, 11 Jun 2026 05:23:00 +0000 (06:23 +0100)
Commit 126cb16e3 ("GH: fix check-whitespace.yaml error return with
multiple commits") removed the wrong err=0. Put it back and remove the
*right* one!

.github/workflows/check-whitespace.yaml

index a497102d70f7d43763c10acefce3ff6efdcae890..e76bd1530eea3658f4b1ffe1a859ac3fd799250c 100644 (file)
@@ -18,12 +18,12 @@ jobs:
       run: |
         echo "## Whitespace Check Results" >${GITHUB_STEP_SUMMARY}
         echo '```' >>${GITHUB_STEP_SUMMARY}
+        err=0
         commit=
         while read dash hash subj
         do
           case "${dash}" in
           "---")
-            err=0
             commit="${hash} (\"${subj}\")"
             ;;
           "")