Skip to content

Commit

Permalink
chore: merge dev into main for linear history.
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rtexR committed Oct 18, 2024
1 parent 67a2411 commit d049d21
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/sync-dev-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,20 @@ jobs:
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Fetch all branches
run: git fetch origin

- name: Checkout main branch
run: git checkout main

- name: Rebase development onto main
run: |
git checkout development
git rebase main
git fetch --all
git fetch --tags
- name: Push changes to main
- name: Update main branch
run: |
git checkout main
git merge development --ff-only
git push [email protected]:${GITHUB_REPOSITORY}.git main
git reset --hard origin/main
git merge --ff-only origin/development
git push origin main
- name: Handle rebase conflicts
- name: Handle merge conflicts
if: failure()
run: |
echo "⚠️ There was a conflict during the rebase. Please resolve it manually."
echo "⚠️ There was a conflict during the merge. Please resolve it manually."
git merge --abort
exit 1

0 comments on commit d049d21

Please sign in to comment.