Skip to content

Create merge.yml

Create merge.yml #2

Workflow file for this run

name: Auto-Merge
on:
push:
branches:
- build
- about
workflow_dispatch:
jobs:
merge:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Git user
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
- name: Fetch all branches
run: git fetch --all
- name: Merge branch into main
run: |
git checkout main
git merge ${{ github.ref }}
- name: Push changes to main
run: git push origin main