Skip to content

Commit

Permalink
CI: use prepared checkpatch.conf file only for GH actions
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ktanska committed Jul 1, 2024
1 parent b49cbdf commit ef00cbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit ef00cbb

Please sign in to comment.