Skip to content

Commit

Permalink
Update update_master.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsi authored Jul 14, 2024
1 parent b9f124d commit fe50f00
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/update_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ jobs:
git checkout -b update-master
git merge -X ours --no-edit origin/edge || true
- name: Auto-resolve conflicts
run: |
if git status | grep -q 'You have unmerged paths'; then
git status | grep 'both modified:' | awk '{print $3}' | xargs git checkout --ours
git add .
git commit -m "Auto-resolve conflicts"
fi
- name: Push changes
run: |
git push origin update-master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
Expand Down

0 comments on commit fe50f00

Please sign in to comment.