From: Kinga Stefaniuk Date: Mon, 1 Jul 2024 14:31:32 +0000 (+0200) Subject: CI: use prepared checkpatch.conf file only for GH actions X-Git-Tag: mdadm-4.4~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1d9bddc868085a5f407d44208e57ff6dfd3bdc;p=thirdparty%2Fmdadm.git CI: use prepared checkpatch.conf file only for GH actions 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 --- diff --git a/.checkpatch.conf b/.github/tools/.checkpatch.conf similarity index 100% rename from .checkpatch.conf rename to .github/tools/.checkpatch.conf diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 57f5d238..026fdab9 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -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