Files
linux/.github/workflows/checkpatch.yml
Phil Elwell 15669e6a06 workflows: Update other workflow files
Get rid of the remaining node.js warnings by updating the actions.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
2024-04-15 11:49:52 +01:00

19 lines
640 B
YAML

name: Advisory checkpatch review
on: [pull_request]
jobs:
review:
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: Copy checkpatch.conf
run: cp ${{github.workspace}}/.github/workflows/ci_checkpatch.conf ${{github.workspace}}/.checkpatch.conf
- name: Run checkpatch review
uses: webispy/checkpatch-action@v9