We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24618f6 commit cfebc77Copy full SHA for cfebc77
scripts/update_deploy_branch.sh
@@ -32,7 +32,11 @@ if [ "$BRANCH_NAME" != "main" ]; then
32
33
# Merge 'main' into the branch
34
echo "Merging 'main' into '$BRANCH_NAME'..."
35
- git merge main --no-edit
+ 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
+ }
40
fi
41
42
# Run the update script
0 commit comments