]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
CI: fetch all of the changes in repository
authorKinga Stefaniuk <kinga.stefaniuk@intel.com>
Tue, 23 Jul 2024 13:53:29 +0000 (15:53 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Wed, 24 Jul 2024 09:20:22 +0000 (11:20 +0200)
GH action is using checkout plugin, which takes fetch-depth
as a parameter to specify number of commits to fetch. Setting it
to 0 to fetch all of the history of all branches and tags.

Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
.github/workflows/review.yml

index 026fdab9a1fd651e8e7aef1a82fad7ed6defc6a8..3fa29f6dc98edd696f2f41f934dc2de4c5776e67 100644 (file)
@@ -31,12 +31,10 @@ jobs:
     runs-on: ubuntu-latest
     name: checkpatch review
     steps:
-    - name: 'Calculate PR commits + 1'
-      run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV
     - uses: actions/checkout@v4
       with:
         ref: ${{ github.event.pull_request.head.sha }}
-        fetch-depth: ${{ env.PR_FETCH_DEPTH }}
+        fetch-depth: 0
     - name: 'Move prepared .checkpatch.conf file to main directory'
       run: mv .github/tools/.checkpatch.conf .
     - name: Run checkpatch review