Main should rebase on Development after a merge (#5) #1
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
name: Rebase main onto development | |
on: | |
push: | |
branches: | |
- development | |
jobs: | |
rebase: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Git | |
run: | | |
git config --global user.name "Mechak Holondo" | |
git config --global user.email "[email protected]" | |
- name: Rebase development onto main | |
run: | | |
git fetch origin | |
git checkout main | |
git rebase origin/development | |
- name: Push changes | |
run: | | |
git push origin main --force |