From 69e063fc3833e2fae84ae5e1defdd162189969b3 Mon Sep 17 00:00:00 2001 From: Hileamlak Mulugeta Yitayew Date: Thu, 4 Jan 2024 12:42:15 -0500 Subject: [PATCH] Add a worklow to mirror changes to master --- .github/workflows/sync-main-to-master.yml | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/sync-main-to-master.yml diff --git a/.github/workflows/sync-main-to-master.yml b/.github/workflows/sync-main-to-master.yml new file mode 100644 index 0000000..73015f8 --- /dev/null +++ b/.github/workflows/sync-main-to-master.yml @@ -0,0 +1,27 @@ +name: Sync Main to Master + +on: + push: + branches: + - main + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up Git + run: | + git config --global user.name 'GitHub Action' + git config --global user.email 'action@github.com' + + - name: Push Changes to Master + run: | + git fetch origin + git checkout master + git merge --ff-only origin/main + git push origin master