Sync multiple branches #4
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 multiple branches | |
on: | |
workflow_run: | |
workflows: ['Changelog'] | |
types: | |
- completed | |
permissions: | |
contents: write | |
jobs: | |
merge-main-to-develop: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Merge main to develop | |
run: | | |
git checkout develop | |
git merge origin/main | |
- name: Push changes | |
run: git push origin develop |