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