Skip to content

Sync multiple branches #4

Sync multiple branches

Sync multiple branches #4

Workflow file for this run

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