CI: Fix check patch to handle renames / deletes

Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
This commit is contained in:
Brennan Ashton 2020-09-03 14:52:18 -07:00 committed by Matias N
parent d121168fb0
commit bef5dc32a7

View File

@ -36,7 +36,7 @@ jobs:
- name: Check Pull Request
run: |
cd apps
commits=`git log -1 --merges --pretty=format:%P | awk -F" " '{ print $1 ".." $2 }'`
commits="${{ github.event.pull_request.base.sha }}..HEAD"
git log --oneline $commits
echo "../nuttx/tools/checkpatch.sh -g $commits"
../nuttx/tools/checkpatch.sh -g $commits