| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f41ea76 commit 6190552
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,8 +70,12 @@ jobs: | |||
| 70 | 70 | - name: Format C/C++ files | |
| 71 | 71 | run: | | |
| 72 | 72 | make format-cpp-build | |
| 73 | + # The `make format-cpp` error code is intentionally ignored here | ||
| 74 | + # because it is irrelevant. We already check if the formatter produced | ||
| 75 | + # a diff in the next line. | ||
| 76 | + # Refs: https://github.com/nodejs/node/pull/42764 | ||
| 73 | 77 | CLANG_FORMAT_START="$(git merge-base HEAD refs/remotes/origin/$GITHUB_BASE_REF)" \ | |
| 74 | - make format-cpp | ||
| 78 | + make format-cpp || true | ||
| 75 | 79 | git --no-pager diff --exit-code && EXIT_CODE="$?" || EXIT_CODE="$?" | |
| 76 | 80 | if [ "$EXIT_CODE" != "0" ] | |
| 77 | 81 | then | |
| Back | FazBrowse Home | New Git URL |
0 commit comments