-
-
Notifications
You must be signed in to change notification settings - Fork 50
41 lines (38 loc) · 1.31 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
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-s
dst: gitee/twelvet
dst_key: ${{ secrets.SSH_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
# 指定同步仓库
static_list: twelvet,twelvet-ui,twelvet-fast,netty-websocket-spring-boot-starter,gins,twelvet-ai,twelvet-mall-ui,twelvet-mall,excel-spring-boot-starter
force_update: true
account_type: user
clone_style: ssh
debug: true
# gitlab:
# runs-on: ubuntu-latest
# steps:
# - name: Mirror the Github organization repos to gitlab.
# uses: Yikun/hub-mirror-action@master
# with:
# src: github/twelvet-s
# 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