From fc27fa8b68b8fbe79826805c9a55a2764d0fc9e5 Mon Sep 17 00:00:00 2001 From: adminroot Date: Thu, 11 Sep 2025 23:20:48 -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 | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/update-rules.yml b/.gitea/workflows/update-rules.yml index 50499c3..996a77d 100644 --- a/.gitea/workflows/update-rules.yml +++ b/.gitea/workflows/update-rules.yml @@ -1,27 +1,17 @@ -name: Download Clash Rules - +name: Push测试 on: - workflow_dispatch: push: - branches: [ main, master ] + branches: [ main ] + pull_request: + branches: [ main ] jobs: - download-rules: + test: runs-on: ubuntu-latest - steps: - # 不使用 actions/checkout,直接手动克隆 - - name: Manual Clone Repository + - uses: actions/checkout@v3 + - name: 运行测试 run: | - git clone https://${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#}/${{ github.repository }}.git . - git config user.name "Bot" - git config user.email "bot@example.com" - - - name: Test commit - run: | - mkdir -p ruleset - echo "test $(date)" > ruleset/test.txt - - git add . - git commit -m "Test commit" || echo "No changes" - git push || echo "Push failed" \ No newline at end of file + echo "Push事件触发成功" + echo "提交SHA: ${{ github.sha }}" + echo "提交者: ${{ github.actor }}" \ No newline at end of file