-
-
Notifications
You must be signed in to change notification settings - Fork 17
30 lines (28 loc) · 875 Bytes
/
repo-sync.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
name: Repo Sync
on:
push:
branches:
- main
jobs:
gitlab:
runs-on: ubuntu-latest
if: github.event.repository.owner.login == 'HollowMan6'
steps:
- name: Sync to GitLab
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
with:
source-repo: git@github.com:${{ github.repository }}.git
destination-repo: git@gitlab.com:${{ github.repository }}.git
gitee:
runs-on: ubuntu-latest
if: github.event.repository.owner.login == 'HollowMan6'
steps:
- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
with:
source-repo: git@github.com:${{ github.repository }}.git
destination-repo: git@gitee.com:${{ github.repository }}.git