]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
build: checkout full repo for checkpatch
authorDaniel Wagner <dwagner@suse.de>
Thu, 18 Jan 2024 14:20:59 +0000 (15:20 +0100)
committerDaniel Wagner <wagi@monom.org>
Thu, 18 Jan 2024 14:34:50 +0000 (15:34 +0100)
checkpatch likes to verify git references. Thus we need to checkout the
full repo to get this working.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
.github/workflows/checkpatch.yml

index 8cf5e4936a0285ac8443c37c7690995c396b89a4..c0a09b7653e022a3da14e98cf7e179c28e82ea8f 100644 (file)
@@ -10,6 +10,6 @@ jobs:
     - uses: actions/checkout@v4
       with:
         ref: ${{ github.event.pull_request.head.sha }}
-        fetch-depth: ${{ env.PR_FETCH_DEPTH }}
+        fetch-depth: 0
     - name: Run checkpatch review
       uses: webispy/checkpatch-action@v9