From 15f0ce88baa484ce2638ff849485e404faa25a4a Mon Sep 17 00:00:00 2001 From: Alexander P Stasenko Date: Wed, 7 Sep 2022 10:41:37 -0700 Subject: [PATCH] Make lint for commits in PR change only not taking into account sycl branch HEAD --- devops/actions/clang-format/action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/devops/actions/clang-format/action.yml b/devops/actions/clang-format/action.yml index 4ea522f8ae7ff..973d9a5288ecd 100644 --- a/devops/actions/clang-format/action.yml +++ b/devops/actions/clang-format/action.yml @@ -7,8 +7,7 @@ runs: shell: bash {0} run: | git config --global --add safe.directory /__w/llvm/llvm - git fetch origin sycl - git clang-format ${GITHUB_SHA} + git clang-format ${{ github.event.pull_request.base.sha }} git diff > ./clang-format.patch # Add patch with formatting fixes to CI job artifacts - uses: actions/upload-artifact@v1