Files
bypass/.gitea/workflows/sync_repo.yml
yuanzhen869 3caeab8fa2
Some checks failed
SyncEntireRepo / sync_repo (push) Has been cancelled
更新 .gitea/workflows/sync_repo.yml
2024-11-09 06:46:01 +00:00

29 lines
911 B
YAML

name: SyncEntireRepo
on:
push:
paths:
- .gitea/workflows/sync_repo.yml # 仅在该文件被修改时触发
schedule:
- cron: "0 * * * *" # 每小时执行一次
jobs:
sync_repo:
runs-on: ubuntu-latest
steps:
- name: Configure Git
run: |
git config --global user.name "yuanzhen869"
git config --global user.email "yuanzhen869@gmail.com"
- name: Clone GitHub repository
run: |
git clone --mirror https://github.com/blackmatrix7/ios_rule_script.git repo_sync # 替换为GitHub仓库URL
cd repo_sync
git remote add gitea https://git.halonice.com/yuanzhen869/bypass.git # 替换为Gitea仓库URL
git fetch -p origin
git push -f gitea --all # 推送所有分支
git push -f gitea --tags # 推送所有标签
- name: Clean up
run: |
rm -rf repo_sync