Create merge.yml #2
Workflow file for this run
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: 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 |