修复 CNB 同步功能 (#4995)
This commit is contained in:
4
.github/workflows/cnb.yml
vendored
4
.github/workflows/cnb.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: cnb.yml
|
name: Sync to CNB
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push
|
push
|
||||||
@@ -15,4 +15,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git clone --mirror "https://github.com/$SOURCE_REPO.git" -- repo
|
git clone --mirror "https://github.com/$SOURCE_REPO.git" -- repo
|
||||||
cd 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/*"
|
||||||
|
|||||||
Reference in New Issue
Block a user