diff --git a/.github/workflows/sync-branch.yml b/.github/workflows/sync-branch.yml new file mode 100644 index 0000000..bf0111e --- /dev/null +++ b/.github/workflows/sync-branch.yml @@ -0,0 +1,25 @@ +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: "stage" + #PULL_REQUEST_AUTO_MERGE_METHOD: "merge"