♻️ refactor(runner): simplify shell helpers and workflow scripts

This commit is contained in:
csh
2026-05-22 13:50:36 +08:00
parent 40fa747a94
commit ebd0f94053
9 changed files with 101 additions and 116 deletions
-23
View File
@@ -90,29 +90,6 @@ echo ""
if [ $FIXED_COUNT -gt 0 ]; then
echo -e "${GREEN}✓ 所有问题已自动修复!${NC}"
echo ""
echo "建议执行以下命令重启容器:"
echo " docker compose down"
echo " docker compose build --no-cache"
echo " docker compose up -d"
echo ""
# 询问是否立即重启
read -p "是否立即重启容器? (y/N): " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "正在重启容器..."
docker compose down
docker compose build --no-cache
docker compose up -d
sleep 3
echo ""
echo "容器状态:"
docker compose ps
echo ""
echo "查看日志:"
docker logs gitea-runner --tail=30
fi
else
echo -e "${GREEN}✓ 所有文件格式正确,无需修复!${NC}"
fi