This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (57 loc) · 1.85 KB
/
mirror.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
#
# Licensed under the GNU General Public License v. 3 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.gnu.org/licenses/gpl-3.0.html
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Copyright (C) 2023-2023 xqyjlj<xqyjlj@126.com>
#
# @author xqyjlj
# @file mirror.yml
#
# Change Logs:
# Date Author Notes
# ------------ ---------- -----------------------------------------------
# 2023-07-10 xqyjlj initial version
#
name: mirror
on:
push:
branches:
- master
- dev
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
mirror:
name: 💕 mirror to another location
runs-on: ubuntu-latest
steps:
- name: 💕 mirror to gitee
uses: csplink/action_git_mirror/@master
with:
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
dest_token: ${{ secrets.GITEE_TOKEN }}
dest: gitee
- name: 💕 mirror to coding
uses: csplink/action_git_mirror/@master
with:
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
dest_token: ${{ secrets.CODING_TOKEN }}
dest_repo: git@e.coding.net:csplink/csplink/csp_repo.git
dest: coding
- name: 💕 mirror to gitlab
uses: csplink/action_git_mirror/@master
with:
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
dest_token: ${{ secrets.GITLAB_TOKEN }}
dest_repo: git@gitlab.com:csplink/csp_repo.git
dest: gitlab