modify gitea action
All checks were successful
Gitea Actions Demo / host-commands (push) Successful in 0s

This commit is contained in:
konjacpotato
2026-02-15 20:10:20 +08:00
parent 79d86988d1
commit 780d025e18

View File

@ -10,12 +10,3 @@ jobs:
- name: 在宿主机上执行命令 - name: 在宿主机上执行命令
run: | run: |
echo "This command runs directly on the host machine" echo "This command runs directly on the host machine"
pwd
# 进入项目目录
cd /Users/konjacpotato/workspace/code/peter
# 结束旧的 screen 会话 screen -X -S peter quit || true
screen -ls | awk '/\.peter\t/ {print $1}' | xargs -I{} screen -X -S {} quit
# 启动新的 screen 会话并在其中运行命令
screen -dmS peter bash -c "source ~/.zshrc ; conda activate peter ; python peter.py"
# 确认会话已启动
screen -list | grep peter