From 7313f96d8a63597fda58dea6fc6462d6a84c42fa Mon Sep 17 00:00:00 2001 From: evgenrudenko22 <125033944+evgenrudenko22@users.noreply.github.com> Date: Sat, 7 Sep 2024 17:03:12 +0300 Subject: [PATCH] Create merge.yml --- .github/workflows/merge.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/merge.yml diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml new file mode 100644 index 0000000..0538a30 --- /dev/null +++ b/.github/workflows/merge.yml @@ -0,0 +1,31 @@ +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