From a0e78f7eef3ea85bf94e63c3564226db6d38247e Mon Sep 17 00:00:00 2001 From: Ember Date: Thu, 30 Jan 2025 01:13:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8git=20checkout=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/buildsite.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/buildsite.yaml b/.gitea/workflows/buildsite.yaml index cd88a3d..99cc45c 100644 --- a/.gitea/workflows/buildsite.yaml +++ b/.gitea/workflows/buildsite.yaml @@ -9,6 +9,7 @@ jobs: runs-on: self-hosted steps: - name: Deploy Code to Web Root + shell: bash # ← 这里添加 shell 类型 run: | # 设置 Git 仓库目录和工作目录 GIT_DIR=/opt/gitea/data/gitea-repositories/ember/front @@ -16,7 +17,7 @@ jobs: # 确保 GIT_DIR 目录存在(首次运行需要手动初始化) if [ ! -d "$GIT_DIR" ]; then - git clone --bare https://gitea.xn--xhq44jb2fzpc.com/ember/front.git $GIT_DIR + git clone --bare https://git.xn--xhq44jb2fzpc.com/ember/front.git $GIT_DIR fi # 获取最新代码并强制检出到网站根目录