pull file
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
Close Stale Issues / close_stale_issues (push) Has been cancelled
repo-sync / repo-sync (push) Has been cancelled
auto-deploy-tencent-scf / pre-check (push) Has been cancelled
auto-deploy-tencent-scf / deploy serverless (push) Has been cancelled
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
Close Stale Issues / close_stale_issues (push) Has been cancelled
repo-sync / repo-sync (push) Has been cancelled
auto-deploy-tencent-scf / pre-check (push) Has been cancelled
auto-deploy-tencent-scf / deploy serverless (push) Has been cancelled
This commit is contained in:
28
.github/workflows/repo-sync.yml
vendored
Normal file
28
.github/workflows/repo-sync.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# 自动同步上游仓库
|
||||
|
||||
name: repo-sync
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 1 * * 1,3,5'
|
||||
# UTC时区,比我们东八区早8小时,上面示例为:每周一、三、五的9点。
|
||||
|
||||
jobs:
|
||||
repo-sync:
|
||||
if: ${{ github.repository != 'RayWangQvQ/BiliBiliToolPro' }}
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: repo-sync
|
||||
uses: repo-sync/github-sync@v2
|
||||
with:
|
||||
source_repo: "https://github.com/RayWangQvQ/BiliBiliToolPro.git"
|
||||
source_branch: "main"
|
||||
destination_branch: "main"
|
||||
sync_tags: "true"
|
||||
github_token: ${{ secrets.PAT }}
|
||||
Reference in New Issue
Block a user