Skip to content

Commit 24ea563

Browse files
authored
Update main.yml
1 parent 00006b4 commit 24ea563

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,12 @@ jobs:
4040
- name: 克隆源仓库
4141
run: |
4242
cd source_repo
43-
# 使用轻量克隆
4443
if [ -n "${{ github.event.inputs.branch }}" ]; then
4544
echo "正在克隆 ${{ github.event.inputs.repo_url }} 的分支: ${{ github.event.inputs.branch }}"
46-
git clone --depth 1 --single-branch --branch "${{ github.event.inputs.branch }}" "${{ github.event.inputs.repo_url }}" .
45+
git clone --single-branch --branch "${{ github.event.inputs.branch }}" "${{ github.event.inputs.repo_url }}" .
4746
else
4847
echo "正在克隆 ${{ github.event.inputs.repo_url }} 的默认分支"
49-
git clone --depth 1 --single-branch "${{ github.event.inputs.repo_url }}" .
48+
git clone --single-branch "${{ github.event.inputs.repo_url }}" .
5049
fi
5150
5251
- name: 生成补丁文件

0 commit comments

Comments
 (0)