Files
bypass/.gitea/workflows/sync_raw_file.yml
yuanzhen869 fb118fb51d
All checks were successful
SyncRawFile / sync_files (push) Successful in 4s
更新 .gitea/workflows/sync_raw_file.yml
2024-11-09 06:25:49 +00:00

25 lines
766 B
YAML

name: SyncRawFile
on:
push: # 当有新提交推送时触发
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: |
mkdir -p ./loon/
curl -o ./loon/China_All.list 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 "yuanzhen869"
git config --global user.email "yuanzhen869@gmail.com"
git add .
git commit -m "Sync file from GitHub raw"
git push origin main