mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:35:50 +00:00
Update AI_to_merge_conflict.yml
Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
parent
07d1634c69
commit
fc00109140
1 changed files with 8 additions and 8 deletions
16
.github/workflows/AI_to_merge_conflict.yml
vendored
16
.github/workflows/AI_to_merge_conflict.yml
vendored
|
@ -27,14 +27,14 @@ jobs:
|
|||
git config user.name "github-actions"
|
||||
git config user.email "actions@github.com"
|
||||
|
||||
- name: Detect Merge Conflicts
|
||||
id: detect_conflicts
|
||||
run: |
|
||||
git fetch origin ${{ github.base_ref }}
|
||||
git merge --no-commit --no-ff origin/${{ github.base_ref }} || true
|
||||
git diff --name-only --diff-filter=U > conflict_files.txt
|
||||
CONFLICT_FILES=$(cat conflict_files.txt | xargs)
|
||||
echo "conflict_files=$CONFLICT_FILES" >> "$GITHUB_OUTPUT"
|
||||
# - name: Detect Merge Conflicts
|
||||
# id: detect_conflicts
|
||||
# run: |
|
||||
# git fetch origin ${{ github.base_ref }}
|
||||
# git merge --no-commit --no-ff origin/${{ github.base_ref }} || true
|
||||
# git diff --name-only --diff-filter=U > conflict_files.txt
|
||||
# CONFLICT_FILES=$(cat conflict_files.txt | xargs)
|
||||
# echo "conflict_files=$CONFLICT_FILES" >> "$GITHUB_OUTPUT"
|
||||
|
||||
# - name: Exit if no conflicts
|
||||
# if: steps.detect_conflicts.outputs.conflict_files == ''
|
||||
|
|
Loading…
Reference in a new issue