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"