Skip to content

Commit e39d6ec

Browse files
authored
[CI][NFC] Make lint for commits in PR change only (#6722)
Make lint for commits in PR change only not taking into account sycl branch HEAD. Should fix issues like in #6705 where lint reported errors for files not affected in PR. To overcome current PRs stuck because of this they need to use ignore-lint tag until PR will be based on devops directory changes made here.
1 parent 33dff95 commit e39d6ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

devops/actions/clang-format/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ runs:
77
shell: bash {0}
88
run: |
99
git config --global --add safe.directory /__w/llvm/llvm
10-
git fetch origin sycl
11-
git clang-format ${GITHUB_SHA}
10+
git clang-format ${{ github.event.pull_request.base.sha }}
1211
git diff > ./clang-format.patch
1312
# Add patch with formatting fixes to CI job artifacts
1413
- uses: actions/upload-artifact@v1

0 commit comments

Comments
 (0)