Merge pull request #28 from iv97n/dev #3
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: Sync Dev with Main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
sync-dev: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Git | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Fetch all branches | |
run: | | |
git fetch --all | |
- name: Checkout Dev branch | |
run: | | |
git checkout dev | |
- name: Merge Main into Dev | |
run: | | |
git merge origin/main --no-ff --no-edit | |
- name: Push changes to Dev branch | |
run: | | |
git push origin dev |