Skip to content

Commit 2e6a4bf

Browse files
authored
update
1 parent 9be047c commit 2e6a4bf

File tree

2 files changed

+31
-60
lines changed

2 files changed

+31
-60
lines changed

.github/workflows/giteemirrorsync.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: sync github repo to gitee
2+
3+
on: push
4+
5+
jobs:
6+
7+
mirror-sync:
8+
9+
runs-on: ubuntu-20.04
10+
11+
steps:
12+
- name: checkout
13+
uses: actions/checkout@v2
14+
with:
15+
persist-credentials: false
16+
17+
- name: Mirror the Github repo(s) to Gitee.
18+
uses: Yikun/hub-mirror-action@master
19+
20+
with:
21+
22+
src: 'github/${{ github.repository_owner }}'
23+
dst: 'gitee/${{ github.repository_owner }}'
24+
25+
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
26+
dst_token: ${{ secrets.GITEE_TOKEN }}
27+
28+
account_type: org
29+
30+
# 默认会同步 account_type 下的所有仓库, 打开下面配置只同步当前仓库
31+
# static_list: ${{ github.event.repository.name }}

0 commit comments

Comments
 (0)