Skip to content

Commit

Permalink
script to prefer version from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaranov34 committed Jul 2, 2024
1 parent cc2637e commit 058f063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
- name: Sync branches
run: |
for branch in $(git branch -r | grep upstream | grep -v '\->' | sed 's|upstream/||'); do
git checkout $branch || git checkout -b $branch
git merge upstream/$branch --allow-unrelated-histories
git checkout $branch 2>/dev/null || git checkout -b $branch upstream/$branch
git merge upstream/$branch --strategy-option theirs || git checkout --theirs .
done
- name: Push changes
Expand Down

0 comments on commit 058f063

Please sign in to comment.