From 2c637fb75300f7d8dbdfec77035293f7d223e081 Mon Sep 17 00:00:00 2001 From: This is XiaoDeng <1744793737@qq.com> Date: Fri, 15 Dec 2023 21:50:36 +0800 Subject: [PATCH] Improve Git clone efficiency by setting depth to 1 By setting the depth to 1, the Git clone operation will be more efficient, as it will fetch only the most recent commit history. This improves the build process speed and reduces unnecessary data transfer. No associated issues. --- .github/workflows/build-beta.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-beta.yml b/.github/workflows/build-beta.yml index b828b64..e687a3c 100644 --- a/.github/workflows/build-beta.yml +++ b/.github/workflows/build-beta.yml @@ -59,7 +59,7 @@ jobs: cd /tmp rm -rf OneDisc-Build - git clone https://github.com/This-is-XiaoDeng/OneDisc-Build.git + git clone https://github.com/This-is-XiaoDeng/OneDisc-Build.git --depth=1 cd OneDisc-Build git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/This-is-XiaoDeng/OneDisc-Build.git