-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (40 loc) · 1.06 KB
/
sync-gitcode.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 to GitCode
on:
push:
branches:
- main
jobs:
to_gitlab:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url:
git@gitlab.com:KingPrimes/DataSource.git
ssh_private_key:
${{ secrets.SSH_PRIVATE_KEY }}
to_gitcode_com:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@master
with:
REMOTE: 'https://gitcode.com/KingPrimes/DataSource.git'
GIT_USERNAME: KingPrimes
GIT_PASSWORD: ${{ secrets.GIT_CODE_COM }}
to_gitee:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@master
with:
REMOTE: 'https://gitee.com/KingPrime/DataSource.git'
GIT_USERNAME: KingPrime
GIT_PASSWORD: ${{ secrets.GIT_EE_COM }}