编辑文件 my-first-workflow.yaml

This commit is contained in:
xinian
2026-01-28 10:35:47 +08:00
committed by cnb
parent cd9b4c1a3e
commit 9fe627078e

View File

@@ -19,19 +19,18 @@ steps:
# ========== 1. 替代clone拉取代码核心依赖 ==========
commands:
# 系统初始化
- apt update -y
- apt update -y
# 系统初始化
- apt install -y --no-install-recommends ca-certificates curl git openssh-client openssl libssl-dev
- apt install -y --no-install-recommends ca-certificates curl git openssh-client openssl libssl-dev
# 格式git clone https://用户名:密码@仓库地址
- echo "🔍 ${#GIT_CONFIG_URL}调试: ${GIT_CONFIG_URL}"
- echo "🔍 ${#GIT_CONFIG_URL}调试: ${GIT_CONFIG_URL}"
- git clone --depth 1 --progress -v ${GIT_CONFIG_URL}
- git clone --depth 1 --progress -v ${GIT_CONFIG_URL}
# 拉取代码
- echo "✅ 代码拉取完成"
- echo "✅ 代码拉取完成"
# # ========== 2. 初始化Go环境依赖prepare代码拉取完成 ==========
# prepare-go: # 与prepare同级缩进2个空格