Fix Action(main->master)
This commit is contained in:
@@ -13,13 +13,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
# 第一步:设置主工作目录和稳定的虚拟环境
|
||||
- name: Set up main worktree with stable environment
|
||||
- name: Set up master worktree with stable environment
|
||||
run: |
|
||||
echo "=== Setting up main worktree ==="
|
||||
echo "=== Setting up master worktree ==="
|
||||
|
||||
# 创建主工作目录并克隆仓库
|
||||
if [ ! -d /home/ly0kos/work/test_env ]; then
|
||||
echo "Cloning repository to main worktree..."
|
||||
echo "Cloning repository to master worktree..."
|
||||
git clone http://localhost:3000/yuysh/Manlink_Doc.git /home/ly0kos/work/test_env
|
||||
cd /home/ly0kos/work/test_env
|
||||
echo "Creating virtual environment..."
|
||||
@@ -28,15 +28,15 @@ jobs:
|
||||
echo "Installing dependencies..."
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
echo "✓ Main worktree and virtual environment created"
|
||||
echo "✓ master worktree and virtual environment created"
|
||||
else
|
||||
echo "Updating existing main worktree..."
|
||||
echo "Updating existing master worktree..."
|
||||
cd /home/ly0kos/work/test_env
|
||||
git pull origin main
|
||||
git pull origin master
|
||||
source .venv/bin/activate
|
||||
echo "Updating dependencies if needed..."
|
||||
pip install -r requirements.txt
|
||||
echo "✓ Main worktree updated"
|
||||
echo "✓ master worktree updated"
|
||||
fi
|
||||
|
||||
# 验证环境
|
||||
|
||||
Reference in New Issue
Block a user