Upstream Sync #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Upstream Sync" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" # 每天同步一次 | |
jobs: | |
sync_latest_from_upstream: | |
runs-on: ubuntu-latest | |
name: Sync latest commits from upstream repo | |
steps: | |
- name: Checkout target repo | |
uses: actions/checkout@v3 | |
- name: Sync upstream changes | |
id: sync | |
uses: aormsby/[email protected] | |
with: | |
upstream_sync_repo: Ac-Wiki/AcWiKi | |
upstream_sync_branch: main | |
target_sync_repo: Ac-Wiki/AcWiKi | |
target_sync_branch: main | |
target_repo_token: ${{ secrets.GITHUB_TOKEN }} | |
test_mode: false |