From ef00cbb0330d38997a6994a99d24f0e92ad39c10 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..1db30b31 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -33,6 +33,8 @@ jobs: steps: - name: 'Calculate PR commits + 1' run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV + - name: 'Move prepared .checkpatch.conf file to main directory' + run: mv ${{ GITHUB_WORKSPACE }}/.github/tools/.checkpatch.conf ${{ GITHUB_WORKSPACE }} - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }}