Skip to content

Commit cfebc77

Browse files
committed
chore: Resolve conflicts in favour of main
1 parent 24618f6 commit cfebc77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/update_deploy_branch.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ if [ "$BRANCH_NAME" != "main" ]; then
3232

3333
# Merge 'main' into the branch
3434
echo "Merging 'main' into '$BRANCH_NAME'..."
35-
git merge main --no-edit
35+
git merge main --no-edit || {
36+
git checkout --theirs . # Checkout all conflicted files from main
37+
git add . # Stage them
38+
git commit -m "Resolve merge conflicts in favor of main"
39+
}
3640
fi
3741

3842
# Run the update script

0 commit comments

Comments
 (0)