-
-
Notifications
You must be signed in to change notification settings - Fork 62
98 lines (91 loc) · 3.47 KB
/
sync-to-others.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: KnifeHub - Sync to Others
on:
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the Github Actions Workflow page directly
schedule: # Run workflow automatically
- cron: "0 * * * *" # 每 1 h 运行一次
jobs:
# https://gitee.com/yiyungent
sync-to-gitee:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHub.git
# 目标仓库地址
destination-repo: [email protected]:yiyungent/KnifeHub.git
# https://bitbucket.org/yiyungent/
sync-to-bitbucket:
runs-on: ubuntu-latest
steps:
- name: Sync to Bitbucket
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHub.git
# 目标仓库地址
destination-repo: [email protected]:yiyungent/KnifeHub.git
# https://gitea.moeci.com/yiyungent
sync-to-gitea:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitea
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHub.git
# 目标仓库地址
destination-repo: [email protected]:yiyungent/KnifeHub.git
# https://gitlab.com/yiyungent
sync-to-gitlab:
runs-on: ubuntu-latest
steps:
- name: Sync to GitLab
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHub.git
# 目标仓库地址
destination-repo: [email protected]:yiyungent/KnifeHub.git
# https://yiyungent.coding.net/user/projects
sync-to-coding:
runs-on: ubuntu-latest
steps:
- name: Sync to Coding
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHub.git
# 目标仓库地址
destination-repo: [email protected]:yiyungent/yiyungent/KnifeHub.git
# 阿里云云效 Codeup
# https://codeup.aliyun.com/
sync-to-codeup:
runs-on: ubuntu-latest
steps:
- name: Sync to Codeup
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHub.git
# 目标仓库地址
destination-repo: [email protected]:651d0e808c5fee586761b459/yiyungent/KnifeHub.git