File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,17 @@ git checkout main
143143git pull origin main
144144
145145print_info " Merging release branch into main"
146- git merge " $RELEASE_BRANCH " --no-ff -m " Merge release v${VERSION} "
146+ if ! git merge " $RELEASE_BRANCH " --no-ff -m " Merge release v${VERSION} " ; then
147+ if git status --short | grep -q " ^UU hassio-addon/config.yaml" ; then
148+ print_warning " Merge conflict detected in hassio-addon/config.yaml. Using release branch version."
149+ git checkout --theirs hassio-addon/config.yaml
150+ git add hassio-addon/config.yaml
151+ git commit --no-edit
152+ else
153+ print_error " Merge failed due to conflicts. Please resolve manually."
154+ exit 1
155+ fi
156+ fi
147157
148158# Create and push tag
149159print_info " Creating tag ${VERSION} "
You can’t perform that action at this time.
0 commit comments