From: Kinga Stefaniuk Date: Tue, 23 Jul 2024 13:53:29 +0000 (+0200) Subject: CI: fetch all of the changes in repository X-Git-Tag: mdadm-4.4~120 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=ea9f178e1f8b2bba06b3b987ac5bb418abfde3f4;p=mdadm.git CI: fetch all of the changes in repository 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 --- diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 026fdab9..3fa29f6d 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -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