更新 .gitea/workflows/update-rules.yml
Some checks failed
Download Clash Rules / download-rules (push) Failing after 1s

This commit is contained in:
2025-09-11 23:17:51 -07:00
parent 587bb4dc75
commit 09dd2cfde4

View File

@@ -10,14 +10,17 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 # 不使用 actions/checkout,直接手动克隆
- name: Manual Clone Repository
- run: | run: |
git clone https://${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#https://}/${{ github.repository }}.git .
git config user.name "Bot" git config user.name "Bot"
git config user.email "bot@example.com" git config user.email "bot@example.com"
- name: Test commit
run: |
mkdir -p ruleset mkdir -p ruleset
echo "test" > ruleset/test.txt echo "test $(date)" > ruleset/test.txt
git add . git add .
git commit -m "Test commit" || echo "No changes" git commit -m "Test commit" || echo "No changes"