From 5434dcbbc8e7917bfd0c91be4bb681d0be59fb2c Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Fri, 11 Oct 2024 15:34:40 +0200 Subject: [PATCH] GA for automatic development sync --- .gihtub/workflows/sync-main-to-dev.yml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gihtub/workflows/sync-main-to-dev.yml diff --git a/.gihtub/workflows/sync-main-to-dev.yml b/.gihtub/workflows/sync-main-to-dev.yml new file mode 100644 index 0000000..3878783 --- /dev/null +++ b/.gihtub/workflows/sync-main-to-dev.yml @@ -0,0 +1,29 @@ +name: Sync main to development + +on: + push: + branches: + - main + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Configure Git + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + + - name: Fetch all branches + run: git fetch --all + + - name: Merge main into development + run: | + git checkout development + git merge main + + - name: Push changes to development + run: git push origin development