From 81c70b19d4fc2c2b43a2c4c6824b3c3d4cb0f772 Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Tue, 25 Feb 2020 19:23:09 +0300 Subject: [PATCH] [CI] Fix commit range for clang-format check It turns out that my original implementation was correct and I just mis-understand the double dot commit range description from ProGit https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection. Signed-off-by: Alexey Bader --- .github/workflows/clang-format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 686fb859b1bd5..4504f389d05a6 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -21,7 +21,7 @@ jobs: - name: Run clang-format for the patch run: | - git diff -U0 --no-color origin/${{github.base_ref}}..HEAD | ./clang/tools/clang-format/clang-format-diff.py -p1 -binary clang-format-9 > ./clang-format.patch + git diff -U0 --no-color origin/${{github.base_ref}}...HEAD | ./clang/tools/clang-format/clang-format-diff.py -p1 -binary clang-format-9 > ./clang-format.patch # Add patch with formatting fixes to CI job artifacts - uses: actions/upload-artifact@v1