CI: Fix check patch to handle renames / deletes
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
This commit is contained in:
parent
d121168fb0
commit
bef5dc32a7
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user