diff --git a/.github/workflows/sync-to-production.yaml b/.github/workflows/sync-to-production.yaml new file mode 100644 index 0000000..38e7614 --- /dev/null +++ b/.github/workflows/sync-to-production.yaml @@ -0,0 +1,24 @@ +name: Sync +on: + push: + branches: + - main + +jobs: + sync-branches: + runs-on: ubuntu-latest + name: Syncing branches + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Node + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Opening pull request + id: pull + uses: tretuna/sync-branches@1.4.0 + with: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + FROM_BRANCH: "main" + TO_BRANCH: "production"