Skip to content

Commit be6bd04

Browse files
authored
[PECOBLR-849] Fix JDBC Comparator workflow (#986)
## Description <!-- Provide a brief summary of the changes made and the issue they aim to address.--> The comparator workflow was not working since it was not able to resolve the merge conflicts. Updated the workflow to apply the incoming changes always in case of merge conflicts. ## Testing <!-- Describe how the changes have been tested--> Tested the command locally ## Additional Notes to the Reviewer <!-- Share any additional context or insights that may help the reviewer understand the changes better. This could include challenges faced, limitations, or compromises made during the development process. Also, mention any areas of the code that you would like the reviewer to focus on specifically. --> NO_CHANGELOG=true
1 parent c5a757c commit be6bd04

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/runJdbcComparator.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ jobs:
2626
- name: Merge main into jdbc-comparator
2727
run: |
2828
git checkout jdbc-comparator
29-
git merge main --no-edit || {
30-
echo "Merge conflict occurred"
31-
git merge --abort
32-
exit 1
29+
git merge main --allow-unrelated-histories --no-edit -X theirs || {
30+
echo "Force merging by accepting all changes from main"
31+
git checkout --theirs .
32+
git add .
33+
git commit --no-edit
3334
}
3435
3536
- name: Set up JDK 11

0 commit comments

Comments
 (0)