Skip to content

Create Sync.yml

Create Sync.yml #2

Workflow file for this run

name: Sync Fork
on:
schedule:
- cron: '0 * * * *' # 每小时运行一次
jobs:
sync:

Check failure on line 8 in .github/workflows/SyncFork.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/SyncFork.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Sync fork
uses: aormsby/Fork-Sync-With-Upstream-action@v2.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
upstream_repository: shwang1114/InjectLib
target_branch: main # 或者你想要同步的分支