From 0c969da7025d1155f2be0a5b35d6ac35bdc1c847 Mon Sep 17 00:00:00 2001 From: MichaelSun Date: Fri, 27 Dec 2024 13:53:11 +0800 Subject: [PATCH] ci: update sync code --- .github/workflows/sync-gitee.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/sync-gitee.yml b/.github/workflows/sync-gitee.yml index 20cbaa60..d0d37add 100644 --- a/.github/workflows/sync-gitee.yml +++ b/.github/workflows/sync-gitee.yml @@ -19,3 +19,14 @@ jobs: source-repo: git@github.com:zhensherlock/watermark-js-plus.git # Gitee 目标仓库地址 destination-repo: git@gitee.com:cs_huayi_zhensherlock/watermark-js-plus.git + + - name: Sync to CNB + uses: wearerequired/git-mirror-action@master + env: + # 在 Settings->Secrets 配置 CNB_RSA_PRIVATE_KEY + SSH_PRIVATE_KEY: ${{ secrets.CNB_RSA_PRIVATE_KEY }} + with: + # GitHub 源仓库地址 + source-repo: git@github.com:zhensherlock/watermark-js-plus.git + # Gitee 目标仓库地址 + destination-repo: git@cnb.cool:zhensherlock/watermark-js-plus.git