Skip to content

Commit 3a9cc2b

Browse files
authored
修复 CNB 同步功能 (#4995)
1 parent 056f30f commit 3a9cc2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/cnb.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: cnb.yml
1+
name: Sync to CNB
22

33
on:
44
push
@@ -15,4 +15,4 @@ jobs:
1515
run: |
1616
git clone --mirror "https://github.com/$SOURCE_REPO.git" -- repo
1717
cd repo
18-
git push --mirror "https://${{ secrets.CNB_SYNC_USERNAME }}:${{ secrets.CNB_SYNC_TOKEN }}@cnb.cool/$TARGET_REPO.git"
18+
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/*"

0 commit comments

Comments
 (0)