## 新建一个库,此文件路径为 .github/workflows/ziye-sync.yml 打开教程链接 https://www.jianshu.com/p/bb82b3ad1d11 ,申请PAT(勾选时尽量全部勾选 ),找到Settings------secrets------New repository secret------name填写PAT value填写PAT的值 ## 点击 Actions 手动运行或者等待定时运行即可自动生成分支 ZIYE 且自动同步文件至此 ## 其他作者库同理 替换如下 ## 作者名 q123458384 ## 作者库名 ziye ## 作者分支名 main ## 同步分支名 ZIYE (自己的分支,可自定义 ) ```php name: ziye-sync on: schedule: - cron: '1 21 12 12 *' workflow_dispatch: watch: types: started repository_dispatch: types: sync-XXXX-YYYY jobs: repo-sync: env: PAT: $secrets.PAT }} runs-on (ubuntu-latest if: github.event.repository.owner.id == github.event.sender.id steps: - uses: actions/checkout@v2 with: persist-credentials: false - name: sync-XXXX-YYYY uses: repo-sync/github-sync@v2 if: env.PAT with: source_repo: "https://github.com/ziye888/JavaScript.git" #同步的仓库 source_branch: "main" #同步的分支 destination_branch: "ziye" #自己这边要显示的分支名 github_token: ${{ secrets.PAT) ``` WMI Scripting HTML 当前访问者IP地址及地址归属: Last modification:April 13th, 2021 at 03:31 pm © 允许规范转载 Support 如果觉得我的文章对你有用,请随意赞赏 ×Close Appreciate the author Sweeping payments