Skip to content

Commit

Permalink
Update Sync-Gitee.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru authored Jan 29, 2024
1 parent a0b4397 commit 11b4682
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/Sync-Gitee.yml
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

0 comments on commit 11b4682

Please sign in to comment.