Skip to content

Commit

Permalink
更新 cnb.yaml 中的 git push 命令,强制推送以确保同步
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed Oct 14, 2024
1 parent 6ee0efc commit 873bde4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cnb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
# git for-each-ref --format 'delete %(refname)' refs/pull | git update-ref --stdin
# git push --mirror
git clone --mirror "$SOURCE_REPO" && cd `basename "$SOURCE_REPO"`
git push --prune "$DESTINATION_REPO" "refs/heads/*:refs/heads/*" "refs/tags/*:refs/tags/*"
git push -f --prune "$DESTINATION_REPO" "refs/heads/*:refs/heads/*" "refs/tags/*:refs/tags/*"

0 comments on commit 873bde4

Please sign in to comment.