From 3a9cc2b9bb95e652a554e47afb15fbc47f624811 Mon Sep 17 00:00:00 2001 From: Glavo Date: Thu, 18 Dec 2025 05:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20CNB=20=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=20(#4995)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cnb.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cnb.yml b/.github/workflows/cnb.yml index b7d67bcc3..fad05f65f 100644 --- a/.github/workflows/cnb.yml +++ b/.github/workflows/cnb.yml @@ -1,4 +1,4 @@ -name: cnb.yml +name: Sync to CNB on: push @@ -15,4 +15,4 @@ jobs: 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" + git push -f --prune "https://${{ secrets.CNB_SYNC_USERNAME }}:${{ secrets.CNB_SYNC_TOKEN }}@cnb.cool/$TARGET_REPO.git" "refs/heads/*:refs/heads/*" "refs/tags/*:refs/tags/*"