Skip to content

Commit

Permalink
Improve Git clone efficiency by setting depth to 1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
This-is-XiaoDeng committed Dec 15, 2023
1 parent d74a421 commit 2c637fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c637fb

Please sign in to comment.