CI: refine checkpatch commits in check.yml

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
liuhaitao 2020-04-16 17:33:12 +08:00 committed by Xiang Xiao
parent bd39813883
commit b33c339c8a

View File

@ -30,8 +30,7 @@ jobs:
- name: Check Pull Request
run: |
cd nuttx
ranges=`git log -1 --merges --pretty=format:%P | awk -F" " '{ print $1 ".." $2 }'`
git log --oneline $ranges
commits=`git log --reverse --format=format:%H $ranges`
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