Create sync-upstream.yml

This commit is contained in:
Hao19911125
2026-02-21 17:07:42 +08:00
committed by GitHub
parent 615c57dad0
commit adcfc38ded

24
.github/workflows/sync-upstream.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Sync Upstream
on:
schedule:
- cron: '0 * * * *' # 每小时检查一次
workflow_dispatch: # 也可以在 GitHub 手动触发
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Sync from upstream
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
upstream_sync_repo: RT15548/LittleWhiteBox
upstream_sync_branch: main
target_sync_branch: main
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
test_mode: false