From df1d9bddc868085a5f407d44208e57ff6dfd3bdc Mon Sep 17 00:00:00 2001 From: Kinga Stefaniuk Date: Mon, 1 Jul 2024 16:31:32 +0200 Subject: [PATCH] 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 --- .checkpatch.conf => .github/tools/.checkpatch.conf | 0 .github/workflows/review.yml | 2 ++ 2 files changed, 2 insertions(+) rename .checkpatch.conf => .github/tools/.checkpatch.conf (100%) 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 -- 2.47.3