-
-
Notifications
You must be signed in to change notification settings - Fork 53
54 lines (52 loc) · 1.59 KB
/
sync-repository.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: 'sync-repository'
on:
workflow_dispatch:
schedule:
# cron表达式,时区是UTC时间,比我们早8小时,如上所表示的是每天0点0分(16+8=24点整)
- cron: '00 16 * * *'
jobs:
gitee:
runs-on: ubuntu-latest
steps:
- name: Mirror the Github organization repos to Gitee.
uses: Yikun/hub-mirror-action@master
with:
src: github/twelvet-projects
dst: gitee/twelvet
dst_key: ${{ secrets.SSH_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
# 指定同步仓库
static_list: ${{ matrix.static_list }}
force_update: true
# 设置源仓库类型为组织:org,个人:user
src_account_type: org
dst_account_type: org
clone_style: ssh
debug: true
strategy:
matrix:
static_list:
- twelvet
- twelvet-ui
- twelvet-fast
- gins
- twelvet-ai
- twelvet-mall-ui
- twelvet-mall
- netty-websocket-spring-boot-starter
- twelvet-hand-code
# gitlab:
# runs-on: ubuntu-latest
# steps:
# - name: Mirror the Github organization repos to gitlab.
# uses: Yikun/hub-mirror-action@master
# with:
# src: github/twelvet-projects
# dst: gitlab/twelvet
# dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
# dst_token: ${{ secrets.GITEE_TOKEN }}
# # static_list: "twelvet"
# force_update: true
# account_type: user
# clone_style: ssh
# debug: true