File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 55 name : checkpatch review
66 runs-on : ubuntu-latest
77 steps :
8+ - name : ' Calculate PR commits + 1'
9+ run : echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV
810 - uses : actions/checkout@v3
911 with :
1012 ref : ${{ github.event.pull_request.head.sha }}
13+ fetch-depth : ${{ env.PR_FETCH_DEPTH }}
1114 - name : Info
1215 run : |
1316 echo "Repository: $GITHUB_REPOSITORY"
1417 echo "Workspace: $GITHUB_WORKSPACE"
1518 pwd
1619 ls -la `pwd`
20+ git log --oneline --graph
1721 - name : Run checkpatch review
1822 uses : webispy/checkpatch-action@master
1923 env :
Original file line number Diff line number Diff line change @@ -4,5 +4,7 @@ int main(int argc, char *argv[])
44{
55 printf ("hello world\n" );
66
7+ printf ("test\n" );
8+
79 return 0 ;
810}
You can’t perform that action at this time.
0 commit comments