From 09dd2cfde402e9c2c54cf2791feb6f15a640124f Mon Sep 17 00:00:00 2001 From: adminroot Date: Thu, 11 Sep 2025 23:17:51 -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 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/update-rules.yml b/.gitea/workflows/update-rules.yml index 7e8f3e6..e1adc25 100644 --- a/.gitea/workflows/update-rules.yml +++ b/.gitea/workflows/update-rules.yml @@ -10,14 +10,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - run: | + # 不使用 actions/checkout,直接手动克隆 + - name: Manual Clone Repository + run: | + git clone https://${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#https://}/${{ github.repository }}.git . git config user.name "Bot" git config user.email "bot@example.com" - + + - name: Test commit + run: | mkdir -p ruleset - echo "test" > ruleset/test.txt + echo "test $(date)" > ruleset/test.txt git add . git commit -m "Test commit" || echo "No changes"