forked from nuttx/nuttx-update
CI: use 'git diff $commits' as a whole patchset to do checkpatch
So avoid the duplicate print logs sometimes and rename file not opened issue. Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
parent
f801d049b0
commit
350131d00e
1 changed files with 1 additions and 2 deletions
3
.github/workflows/check.yml
vendored
3
.github/workflows/check.yml
vendored
|
@ -32,5 +32,4 @@ jobs:
|
|||
cd nuttx
|
||||
commits=`git log -1 --merges --pretty=format:%P | awk -F" " '{ print $1 ".." $2 }'`
|
||||
git log --oneline $commits
|
||||
echo "../nuttx/tools/checkpatch.sh -g $commits"
|
||||
../nuttx/tools/checkpatch.sh -g $commits
|
||||
git diff $commits | ../nuttx/tools/checkpatch.sh -
|
||||
|
|
Loading…
Reference in a new issue