Skip to content

Master to Main

Master to Main #267

Workflow file for this run

name: Master to Main
on:
workflow_run:
workflows: Tests
branches: master
types: completed
workflow_dispatch:
jobs:
merge-master-to-main:
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set Git config
run: |
git config --local user.email "[email protected]"
git config --local user.name "Github Actions"
- name: Merge master back to dev
run: |
git fetch --unshallow
git checkout main
git pull
git merge --ff origin/master -m "Auto-merge master to main"
git push