Skip to content

The Unified and Autonomous Development Platform

Edit .onedev-buildspec.yml

Robin Shen40c6dc787d46
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml
index eebe91d461..58c2b678cf 100644
--- a/.onedev-buildspec.yml
+++ b/.onedev-buildspec.yml
@@ -81,6 +81,8 @@ jobs:
- cd onedev-manual
- if [ "$(git branch -a|grep -c /$branch$)" -eq 0 ]; then
- ' git push origin main:$branch'
+ - else
+ - ' git push -f origin remotes/origin/$branch:main'
- fi
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
retrieveSource: true