add action for syncing to gitee

pull/1166/head
jin.gjm 2022-07-03 10:03:16 +08:00
parent ec8e060740
commit 31617cdef5
1 changed files with 17 additions and 0 deletions

17
.github/workflows/mirror.yml vendored 100644
View File

@ -0,0 +1,17 @@
name: Mirroring
on: [push, delete]
jobs:
to_gitee:
runs-on: ubuntu-latest
steps: # <-- must use actions/checkout before mirroring!
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url:
git@gitee.com:easzlab/kubeasz.git
ssh_private_key:
${{ secrets.SYNCGITEE }} # 密钥 (secret)