We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9be047c commit 2e6a4bfCopy full SHA for 2e6a4bf
.github/workflows/giteemirrorsync.yml
.github/workflows/sync-gitee-mirror.yml
@@ -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
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