From 48a0ac6526c4721f41c1fcdb38085db377a507fc Mon Sep 17 00:00:00 2001 From: Jonathan Fisher <49597360+jpfisher72@users.noreply.github.com> Date: Tue, 2 Apr 2024 13:06:41 -0400 Subject: [PATCH] Create sync-vercel-preview-branch.yml --- .../workflows/sync-vercel-preview-branch.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/sync-vercel-preview-branch.yml diff --git a/.github/workflows/sync-vercel-preview-branch.yml b/.github/workflows/sync-vercel-preview-branch.yml new file mode 100644 index 0000000..920b515 --- /dev/null +++ b/.github/workflows/sync-vercel-preview-branch.yml @@ -0,0 +1,25 @@ +name: Sync master to vercel-preview + +on: + push: + branches: + - master + +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.VERCEL_TOKEN}} + FROM_BRANCH: 'master' + TO_BRANCH: 'vercel-preview'