]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
CI: use prepared checkpatch.conf file only for GH actions
authorKinga Stefaniuk <kinga.stefaniuk@intel.com>
Mon, 1 Jul 2024 14:31:32 +0000 (16:31 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 2 Jul 2024 10:19:00 +0000 (12:19 +0200)
Configuration file .checkpatch.conf is working properly only with
GH actions, because flags from GH plugin are used there. This file
shall not be placed in main repo directory, because it causes errors
while using checkpatch from Linux. Add step to review.yml to copy
this file before checkpatch action is started.

Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
.github/tools/.checkpatch.conf [moved from .checkpatch.conf with 100% similarity]
.github/workflows/review.yml

index 57f5d23839f5eed90db8af38f0c4ee2e3ca4c3e7..026fdab9a1fd651e8e7aef1a82fad7ed6defc6a8 100644 (file)
@@ -37,5 +37,7 @@ jobs:
       with:
         ref: ${{ github.event.pull_request.head.sha }}
         fetch-depth: ${{ env.PR_FETCH_DEPTH }}
+    - name: 'Move prepared .checkpatch.conf file to main directory'
+      run: mv .github/tools/.checkpatch.conf .
     - name: Run checkpatch review
       uses: webispy/checkpatch-action@v9