diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e208e26d25e..242496af912 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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