Skip to content

ci: replace webispy/checkpatch-action with upstream checkpatch.pl #2454

ci: replace webispy/checkpatch-action with upstream checkpatch.pl

ci: replace webispy/checkpatch-action with upstream checkpatch.pl #2454

Workflow file for this run

---
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This file is part of nvme.
# Copyright (c) 2026 SUSE LLC
#
# Authors: Daniel Wagner <[email protected]>
name: Checkpatch Review
on: [pull_request]
jobs:
checkpatch:
name: checkpatch review
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Fetch checkpatch.pl
run: |
curl -sSf \
https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl \
-o checkpatch.pl
- name: Run checkpatch review
run: |
git format-patch --stdout origin/${{ github.base_ref }}..HEAD \
| perl checkpatch.pl -