Skip to content

Commit c322c7b

Browse files
committed
github actions: use shallow clone for kernel checkout
1 parent 7eea99d commit c322c7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-check_x86_64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
PR_REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }}
3434
run: |
3535
if [ "$PR_REPO_FULL_NAME" = "ctrliq/kernel-src-tree" ]; then
36-
git clone --branch "$HEAD_REF" "https://oauth2:${GITHUB_TOKEN}@github.com/ctrliq/kernel-src-tree" kernel-src-tree
36+
git clone --depth 1 --branch "$HEAD_REF" "https://oauth2:${GITHUB_TOKEN}@github.com/ctrliq/kernel-src-tree" kernel-src-tree
3737
else
38-
git clone --branch "$HEAD_REF" "$PR_CLONE_URL" kernel-src-tree
38+
git clone --depth 1 --branch "$HEAD_REF" "$PR_CLONE_URL" kernel-src-tree
3939
fi
4040
4141
- name: Build the Kernel

0 commit comments

Comments
 (0)