使用原生 git 命令替代 actions/checkout
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 0s

This commit is contained in:
2026-01-19 16:22:45 +08:00
parent 8e17b97481
commit dd8d802279

View File

@@ -19,7 +19,13 @@ jobs:
steps:
- name: 检出代码
uses: actions/checkout@v4
run: |
if [ ! -d ".git" ]; then
git clone https://git.boss160.cn/csxj2026/junhong_cmp_fiber.git .
else
git fetch origin
fi
git checkout ${{ github.sha }}
- name: 设置镜像标签
id: tag