fix(ci): 为 clone 命令添加引号以修复 YAML 解析冒号错误
continuous-integration/drone/push Build is failing

This commit is contained in:
seahi committed 2026-09-11 10:03:22 +08:00
1 parent d665df20a6
commit 83fe4295f7
1 file changed
+6 -6
+6 -6
View File
@@ -19,12 +19,12 @@ steps:
- name: clone - name: clone
image: alpine/git image: alpine/git
commands: commands:
- git config --global http.version HTTP/1.1 - "git config --global http.version HTTP/1.1"
- git config --global http.postBuffer 524288000 - "git config --global http.postBuffer 524288000"
- git init - "git init"
- git remote add origin ${DRONE_REMOTE_URL} - "git remote add origin ${DRONE_REMOTE_URL}"
- git fetch --depth=50 origin +refs/heads/${DRONE_COMMIT_BRANCH}: - "git fetch --depth=50 origin +refs/heads/${DRONE_COMMIT_BRANCH}:"
- git checkout -qf ${DRONE_COMMIT_SHA} - "git checkout -qf ${DRONE_COMMIT_SHA}"
- name: install - name: install
image: node:22-slim image: node:22-slim