From 3837d31b5beb416603677af7465badede4773bca Mon Sep 17 00:00:00 2001 From: Pavel Tikhomirov Date: Thu, 26 Jan 2023 15:12:28 +0300 Subject: [PATCH] ci/lint: make push action have at least too commits depth We see that when lint is called for push action git has only one last commit which makes make indent with git-clang-format fail to operate. Fix it by increasing fetch depth to one more commit. Fixes: #2066 Fixes: d6db3333a ("clang-format: rework make indent to check specific commits") Signed-off-by: Pavel Tikhomirov --- .github/workflows/lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0194c9393..a501af30e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,6 +23,7 @@ jobs: - name: Run make indent run: > if [ -z "${{github.base_ref}}" ]; then + git fetch --deepen=1 && if ! make indent OPTS=--diff; then exit 1 fi