Skip to content

Commit

Permalink
feat: update check git conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen Quang Minh committed Sep 4, 2024
1 parent bdec5aa commit dfed335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check_git_conflict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
git fetch origin main
MERGE_BASE=$(git merge-base HEAD origin/main)
git merge-tree --check $MERGE_BASE HEAD origin/main
git merge-tree $MERGE_BASE HEAD origin/main
if [[ $? -ne 0 ]]; then
echo "Code conflicts detected. Please resolve them before merging."
exit 1
Expand Down

0 comments on commit dfed335

Please sign in to comment.