MaiBot/.github/workflows/refactor.yml

18 lines
499 B
YAML

# .github/workflows/sync.yml
name: Sync Fork
on:
push: # push 时触发, 主要是为了测试配置有没有问题
schedule:
- cron: '*/30 * * * *' # every 30 minutes
jobs:
repo-sync:
runs-on: ubuntu-latest
steps:
- uses: TG908/fork-sync@v2.0.10
with:
github_token: ${{ secrets.PERSONAL_TOKEN }}
owner: SengokuCola # fork 的上游仓库 user
head: refactor # fork 的上游仓库 branch
base: refactor # 本地仓库 branch