Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
JCW
2025-07-22 16:59:15 +01:00
parent d92d09a1df
commit 850bb47805

View File

@@ -12,12 +12,17 @@ jobs:
container: ghcr.io/xrplf/ci/tools-rippled-clang-format
steps:
- uses: actions/checkout@v4
- name: Format first-party sources
run: |
clang-format --version
find include src tests -type f \( -name '*.cpp' -o -name '*.hpp' -o -name '*.h' -o -name '*.ipp' \) -exec clang-format -i {} +
- name: Check for differences
id: assert
shell: bash
run: |
pwd
ls -a
git config --global --add safe.directory $(pwd)
set -o pipefail
git diff --exit-code | tee "clang-format.patch"
- name: Upload patch
@@ -28,10 +33,6 @@ jobs:
name: clang-format.patch
if-no-files-found: ignore
path: clang-format.patch
- name: Format first-party sources
run: |
clang-format --version
find include src tests -type f \( -name '*.cpp' -o -name '*.hpp' -o -name '*.h' -o -name '*.ipp' \) -exec clang-format -i {} +
- name: What happened?
if: failure() && steps.assert.outcome == 'failure'
env: