-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge dev into main for linear history.
- Loading branch information
Showing
1 changed file
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |