From e265422d65e5cc7f0917729b1ce9e139faa07c06 Mon Sep 17 00:00:00 2001 From: Wentao Wu Date: Thu, 27 Jun 2024 17:26:54 +0800 Subject: [PATCH] update clone depth --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f87dceb..67554b8 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,7 +82,7 @@ jobs: rm -rf k230_linux_sdk echo "set github proxy" git config --global https.proxy ${{ secrets.GH_PROXY }} - git clone --depth=0 --branch=${PR_BRANCH} https://github.com/${PR_REPO} k230_linux_sdk || git clone --depth=0 --branch=${PR_BRANCH} https://github.com/${PR_REPO} k230_linux_sdk + git clone --depth=10 --branch=${PR_BRANCH} https://github.com/${PR_REPO} k230_linux_sdk || git clone --depth=10 --branch=${PR_BRANCH} https://github.com/${PR_REPO} k230_linux_sdk cd k230_linux_sdk git fetch origin ${PR_BRANCH}:${PR_BRANCH} || exit 1 git checkout ${PR_BRANCH} || exit 1