Skip to content

Commit

Permalink
chore(CI): 看看脚本被修改后到底是什么样的
Browse files Browse the repository at this point in the history
  • Loading branch information
MemoryShadow committed Jul 20, 2023
1 parent 41a48ed commit 467ca79
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,13 @@ jobs:
echo " 设置权限" >> /tmp/E_CICheck.log
chmod +x ./start.py
# 上线
screen -x -S "pyCraft" -p 0 -X stuff "echo ' 检查环境: ${CheckID}' &>> /tmp/E_CICheck.log\n";
screen -x -S "pyCraft" -p 0 -X stuff "pip list &>> /tmp/E_CICheck.log\n";
screen -x -S "pyCraft" -p 0 -X stuff "./start.py -u ${CheckID} -s localhost -o &>>/tmp/E_CICheck.log\n";
screen -x -S "pyCraft" -p 0 -X stuff "echo ' 检查环境: ${CheckID}' \&>> /tmp/E_CICheck.log\n";
screen -x -S "pyCraft" -p 0 -X stuff "pip list \&>> /tmp/E_CICheck.log\n";
screen -x -S "pyCraft" -p 0 -X stuff "./start.py -u ${CheckID} -s localhost -o \&>>/tmp/E_CICheck.log\n";
EOF
cat "/opt/minecraftctl/event/INFO/start"
#*新增login事件响应, 登陆时发送消息
sudo tee -a "/opt/minecraftctl/event/INFO/login" >>/dev/null <<EOF
Expand Down Expand Up @@ -292,6 +294,7 @@ jobs:
WaitTimeS=$[ WaitTimeS + 1]
if [ ${WaitTimeS} -gt 120 ]; then
echo "等待超时" > /dev/stderr;
pip list
minecraftctl stop;
cat logs/latest.log;
cat /tmp/E_CICheck.log;
Expand Down

0 comments on commit 467ca79

Please sign in to comment.