From 5618570dabb16d9ef9da6006e6c48c0dc7349515 Mon Sep 17 00:00:00 2001 From: Alvin Joy <89687635+alvinsjoy@users.noreply.github.com> Date: Sun, 11 Aug 2024 10:08:13 +0530 Subject: [PATCH] add GitHub actions workflow for syncing main to reactions branch --- .github/workflows/sync.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..883ca76 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,27 @@ +name: Sync main to reactions +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + branch-sync: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up git + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' + + - name: Push changes + run: | + git fetch origin + git checkout reactions + git merge main -X theirs + git push origin reactions