From db38aac034e8be216b445c6176bc14f61515f20a Mon Sep 17 00:00:00 2001 From: Rahul Mishra Date: Tue, 27 May 2025 01:45:45 +0530 Subject: [PATCH] chore: add CI to sync to main branch (#1091) --- .github/workflows/sync-production.yml | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/sync-production.yml diff --git a/.github/workflows/sync-production.yml b/.github/workflows/sync-production.yml new file mode 100644 index 000000000..80cd369d4 --- /dev/null +++ b/.github/workflows/sync-production.yml @@ -0,0 +1,35 @@ +name: Sync Production + +on: + push: + branches: + - staging + +permissions: + contents: read + pull-requests: write + +jobs: + sync-branches: + runs-on: ubuntu-latest + name: Syncing branches + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Opening pull request + id: pull + uses: JDTX0/branch-sync@v1.5.1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + FROM_BRANCH: 'staging' + TO_BRANCH: 'main' + PULL_REQUEST_TITLE: 'Deploy to production (Automated)' + CONTENT_COMPARISON: true + PULL_REQUEST_IS_DRAFT: true