索引和工作流修正2

This commit is contained in:
CN-JS-HuiBai
2026-04-16 20:37:13 +08:00
parent 182cd7d0d6
commit 6db9f6941c

View File

@@ -39,7 +39,7 @@ jobs:
repo_url="${CI_SERVER_URL}/${CI_REPOSITORY}.git" repo_url="${CI_SERVER_URL}/${CI_REPOSITORY}.git"
rm -rf "$workspace/.git" rm -rf "$workspace/.git"
git init "$workspace" git init -b ci "$workspace"
git -C "$workspace" remote add origin "$repo_url" git -C "$workspace" remote add origin "$repo_url"
if [[ -n "${CI_TOKEN}" ]]; then if [[ -n "${CI_TOKEN}" ]]; then
@@ -50,7 +50,6 @@ jobs:
fi fi
git -C "$workspace" checkout --detach FETCH_HEAD git -C "$workspace" checkout --detach FETCH_HEAD
git -C "$workspace" submodule update --init --recursive --depth=1
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5