From 19567340c2898538d492f683f95f0b64d827ba31 Mon Sep 17 00:00:00 2001 From: Kurt von Laven Date: Mon, 25 Sep 2023 17:14:14 -0700 Subject: [PATCH] ci(workflow): Hasten checkout with blobless clones In v4.1.0, actions/checkout recently introduced support for Git's partial clones. Partial clones are smaller than full clones (`fetch-depth: 0`), because they don't clone historical blobs and/or trees. Partial clones do clone all historical commits and tags though, so they are larger than depth 1 shallow clones, the default when `fetch-depth` isn't specified. In partial clones, unlike shallow clones, Git operations will typically fetch data that isn't available locally as needed. Hence, prefer blobless clones, the partial clones that give the best performance overall, to full clones, but continue using shallow clones when historical commits and tags aren't needed (e.g., by Commitizen). --- .github/workflows/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3dda3c09..752150f5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,6 +19,7 @@ jobs: uses: actions/checkout@v4.1.0 with: fetch-depth: 0 + filter: blob:none - name: Get operating system name and version. id: os run: echo "IMAGE=$ImageOS" >>"$GITHUB_OUTPUT"