使用原生 git 命令替代 actions/checkout
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 0s
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 0s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user