索引和工作流修正2
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user