仓库同步 #58
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: 仓库同步 | |
description: 同步仓库到码云 | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/SyncToGitee.yml' | |
schedule: | |
- cron: '0 18 * * *' # 每天 2 点运行 18 + 8 - 24 | |
jobs: | |
repo-sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Mirror the Github organization repos to Gitee. | |
uses: Yikun/hub-mirror-action@master | |
with: | |
src: 'github/WeDot-Engine' | |
dst: 'gitee/wedot-engine' | |
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} | |
dst_token: ${{ secrets.GITEE_TOKEN }} | |
force_update: true | |
timeout: '2h' | |
account_type: org | |
debug: true | |
mappings: 'WeDot-Engine.github.io=>wedot-engine.gitee.io' |