修复 CNB 同步功能 (#4995)

This commit is contained in:
Glavo
2025-12-18 05:57:14 +08:00
committed by GitHub
parent 056f30f6f5
commit 3a9cc2b9bb

View File

@@ -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/*"