-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce4136e
commit f6cabb2
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: sync github repo to gitee | ||
|
||
on: push | ||
|
||
jobs: | ||
|
||
mirror-sync: | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Mirror the Github repo(s) to Gitee. | ||
uses: Yikun/hub-mirror-action@master | ||
|
||
with: | ||
|
||
src: 'github/${{ github.repository_owner }}' | ||
dst: 'gitee/${{ github.repository_owner }}' | ||
|
||
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} | ||
dst_token: ${{ secrets.GITEE_TOKEN }} | ||
|
||
account_type: org | ||
|
||
# 默认会同步 account_type 下的所有仓库, 打开下面配置只同步当前仓库 | ||
static_list: ${{ github.event.repository.name }} |