利用Github Action,可以方便的同步至各个平台储存库
目标储存库的SSH URL
目标储存库的SSH KEY
name: 'GitHub Actions Mirror'
on: [push, delete]
jobs:
mirror_to_gitee:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v1
- name: 'Mirror to gitee'
uses: MuirProject/[email protected]
with:
target_repo_url:
[email protected]:becod/test.git
ssh_private_key:
${{ secrets.GITEE_KEY }}
mirror_to_gitlab:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v1
- name: 'Mirror to gitlab'
uses: MuirProject/[email protected]
with:
target_repo_url:
[email protected]:becod/test.git
ssh_private_key:
${{ secrets.GITLAB_KEY }}