Create sync-upstream.yml
This commit is contained in:
24
.github/workflows/sync-upstream.yml
vendored
Normal file
24
.github/workflows/sync-upstream.yml
vendored
Normal 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
|
||||||
Reference in New Issue
Block a user