Files
clash-rules/.gitea/workflows/update-rules.yml
adminroot 09dd2cfde4
Some checks failed
Download Clash Rules / download-rules (push) Failing after 1s
更新 .gitea/workflows/update-rules.yml
2025-09-11 23:17:51 -07:00

27 lines
727 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Download Clash Rules
on:
workflow_dispatch:
push:
branches: [ main, master ]
jobs:
download-rules:
runs-on: ubuntu-latest
steps:
# 不使用 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 $(date)" > ruleset/test.txt
git add .
git commit -m "Test commit" || echo "No changes"
git push || echo "Push failed"