3
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 20s

This commit is contained in:
编码猿
2025-10-05 04:33:26 +08:00
parent 2f30e0298a
commit db3300e7f8

View File

@@ -42,12 +42,13 @@ jobs:
# --- 以下为在管理机上执行的脚本 ---
# 定义项目目录(管理机上的代码存放路径)
PROJECT_DIR="/home/bmygitea_actions"
PROJECT_DIR="/home/bmy"
# 进入项目目录,若不存在则克隆仓库
if [ ! -d "$PROJECT_DIR" ]; then
echo "项目目录不存在,克隆仓库..."
# 假设管理机已配置好 Gitea 的访问权限 (如部署密钥)
# git@git.bmycode.help:bmy/gitea_actions.git
git clone git@git.bmycode.help:${{ gitea.repository }}.git $PROJECT_DIR
cd $PROJECT_DIR
else