summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorKinga Stefaniuk <kinga.stefaniuk@intel.com>2024-07-23 15:53:29 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-07-24 11:20:22 +0200
commitea9f178e1f8b2bba06b3b987ac5bb418abfde3f4 (patch)
tree15270b3f4ab3391742044cf5019d9d42595cd15f /.github
parentmdadm: do not allow leading dot in MD device name (diff)
downloadmdadm-ea9f178e1f8b2bba06b3b987ac5bb418abfde3f4.tar.xz
mdadm-ea9f178e1f8b2bba06b3b987ac5bb418abfde3f4.zip
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 <kinga.stefaniuk@intel.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/review.yml4
1 files changed, 1 insertions, 3 deletions
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