From dd8d802279b0c1c2be6335e657c721136b5b76fb Mon Sep 17 00:00:00 2001 From: huang Date: Mon, 19 Jan 2026 16:22:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=8E=9F=E7=94=9F=20git=20?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E6=9B=BF=E4=BB=A3=20actions/checkout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 20d6472..968a734 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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