Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ jobs:
head_commit=$(git rev-parse FETCH_HEAD)
# diff-filter for lower case letter:
# https://github.com/git/git/commit/7f2ea5f0f2fb056314092cce23202096ca70f076
git --no-pager diff --diff-filter=d --name-only $head_commit | grep -e "csrc/.*\.cpp" -e "csrc/.*\.h" | xargs lintrunner --take CLANGTIDY --force-color
changed_files=$(git --no-pager diff --diff-filter=d --name-only "$head_commit")
files=$(printf '%s\n' "$changed_files" | grep -e "csrc/.*\.cpp" -e "csrc/.*\.h" || true)
if [ -n "$files" ]; then
echo "$files" | xargs -r lintrunner --take CLANGTIDY --force-color
fi

lintrunner:
runs-on: ubuntu-latest
Expand Down