summaryrefslogtreecommitdiffstats
path: root/.github/workflows/checkpatch.yml
blob: 8cf5e4936a0285ac8443c37c7690995c396b89a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
name: checkpatch review
on: [pull_request]
jobs:
  checkpatch:
    name: checkpatch review
    runs-on: ubuntu-latest
    steps:
    - name: 'Calculate PR commits + 1'
      run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV
    - uses: actions/checkout@v4
      with:
        ref: ${{ github.event.pull_request.head.sha }}
        fetch-depth: ${{ env.PR_FETCH_DEPTH }}
    - name: Run checkpatch review
      uses: webispy/checkpatch-action@v9