diff --git a/.gitea/workflows/sync_raw_file.yml b/.gitea/workflows/sync_raw_file.yml new file mode 100644 index 0000000..2eab550 --- /dev/null +++ b/.gitea/workflows/sync_raw_file.yml @@ -0,0 +1,23 @@ +name: SyncRawFile +on: + schedule: + - cron: "0 * * * *" # 每小时执行一次 + +jobs: + sync_files: + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v2 + + - name: Download raw file from GitHub + run: | + curl -o /loon/ https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Surge/China/China_All.list + + - name: Commit and push changes + run: | + git config --global user.name "your_gitea_username" + git config --global user.email "your_email@example.com" + git add . + git commit -m "Sync file from GitHub raw" + git push origin main \ No newline at end of file