From 056f30f6f5ce453a0b317f7eec1de362b14f5e19 Mon Sep 17 00:00:00 2001 From: Glavo Date: Thu, 18 Dec 2025 05:47:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E4=BB=A3=E7=A0=81=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E8=87=B3=20CNB=20(#4994)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cnb.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/cnb.yml diff --git a/.github/workflows/cnb.yml b/.github/workflows/cnb.yml new file mode 100644 index 000000000..b7d67bcc3 --- /dev/null +++ b/.github/workflows/cnb.yml @@ -0,0 +1,18 @@ +name: cnb.yml + +on: + push + +jobs: + run: + if: ${{ github.repository == 'HMCL-dev/HMCL' }} + runs-on: ubuntu-latest + steps: + - name: Mirror GitHub to CNB + env: + SOURCE_REPO: HMCL-dev/HMCL + TARGET_REPO: HMCL-dev/HMCL + run: | + git clone --mirror "https://github.com/$SOURCE_REPO.git" -- repo + cd repo + git push --mirror "https://${{ secrets.CNB_SYNC_USERNAME }}:${{ secrets.CNB_SYNC_TOKEN }}@cnb.cool/$TARGET_REPO.git"