From 751b66e50fadcb47dc16543e69a4ca5ae58b1947 Mon Sep 17 00:00:00 2001 From: adminroot Date: Thu, 11 Sep 2025 23:22:11 -0700 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/update-ru?= =?UTF-8?q?les.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/update-rules.yml | 38 +++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/update-rules.yml b/.gitea/workflows/update-rules.yml index 996a77d..084a612 100644 --- a/.gitea/workflows/update-rules.yml +++ b/.gitea/workflows/update-rules.yml @@ -1,17 +1,41 @@ -name: Push测试 +name: Push测试调试 on: push: - branches: [ main ] + branches: [ main, master ] pull_request: - branches: [ main ] + branches: [ main, master ] jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: 检查环境信息 + run: | + echo "===== 环境信息 =====" + echo "Runner OS: ${{ runner.os }}" + echo "仓库: ${{ github.repository }}" + echo "分支: ${{ github.ref }}" + echo "提交SHA: ${{ github.sha }}" + echo "触发者: ${{ github.actor }}" + echo "工作目录: $(pwd)" + + - name: Checkout代码 + uses: actions/checkout@v3 + with: + fetch-depth: 0 # 获取完整历史 + + - name: 验证checkout结果 + run: | + echo "===== 文件列表 =====" + ls -la + echo "===== Git状态 =====" + git status + echo "===== Git日志 =====" + git log --oneline -5 + - name: 运行测试 run: | - echo "Push事件触发成功" - echo "提交SHA: ${{ github.sha }}" - echo "提交者: ${{ github.actor }}" \ No newline at end of file + echo "===== 开始测试 =====" + # 这里添加您的实际测试命令 + echo "测试通过" + exit 0 # 确保返回成功状态码 \ No newline at end of file