Skip to content

仓库同步

仓库同步 #58

Workflow file for this run

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'