-
Notifications
You must be signed in to change notification settings - Fork 21
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
a0b4397
commit 11b4682
Showing
1 changed file
with
12 additions
and
10 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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
name: Sync To Gitee | ||
|
||
on: [ push, delete, create ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Mirror the Github organization repos to Gitee. | ||
uses: Yikun/hub-mirror-action@master | ||
with: | ||
src: github/YuzukiHD | ||
dst: gitee/YuzukiHD-Mirror | ||
dst_key: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} | ||
dst_token: ${{ secrets.GITEE_TOKEN }} | ||
force_update: true | ||
account_type: org | ||
white_list: "TinyVision" | ||
- name: Sync to Gitee | ||
uses: wearerequired/git-mirror-action@master | ||
env: | ||
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY | ||
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} | ||
with: | ||
# 注意替换为你的 GitHub 源仓库地址 | ||
source-repo: [email protected]:yuzukihd/TinyVision.git | ||
# 注意替换为你的 Gitee 目标仓库地址 | ||
destination-repo: [email protected]:YuzukiHD-Mirror/TinyVision.git |