Skip to content

Commit

Permalink
Update sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
googoo9918 authored Jul 10, 2024
1 parent 2c7e586 commit 02b669b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ jobs:
- name: Rebase onto second/main from worktree
run: |
cd ../worktree
git rebase second/main
git rebase second/main || git rebase --abort
- name: Merge second/main from worktree
if: failure()
run: |
cd ../worktree
git merge -X ours second/main
- name: Push to second from worktree
run: |
Expand All @@ -46,4 +52,3 @@ jobs:
- name: Clean up worktree
run: git worktree remove ../worktree

0 comments on commit 02b669b

Please sign in to comment.