Skip to content

Commit 152577d

Browse files
committed
Update merge strategy in sync-upstream workflow
Modified the merge command to prioritize "ours" strategy during conflicts, ensuring local changes take precedence automatically. This streamlines the merging process and reduces the risk of manual intervention for conflict resolution.
1 parent 0088531 commit 152577d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/sync-upstream.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ jobs:
5353
- name: Merge upstream/${{ env.UPSTREAM_BRANCH }} into unstable
5454
run: |
5555
set -e
56-
git merge --no-ff --no-edit upstream/${{ env.UPSTREAM_BRANCH }} || {
56+
# git merge -s recursive -X ours upstream/${{ env.UPSTREAM_BRANCH }} || echo "Merge completed with our changes"
57+
# git merge --no-ff --no-edit upstream/${{ env.UPSTREAM_BRANCH }} || {
58+
git merge -s recursive -X ours upstream/${{ env.UPSTREAM_BRANCH }} || {
5759
echo "❌ Merge conflict. Please resolve manually." >&2
5860
git merge --abort || true
5961
exit 1

0 commit comments

Comments
 (0)