From 6086d475b29adafecb642f7b57e11c1e0a0ea572 Mon Sep 17 00:00:00 2001 From: dengfuping Date: Wed, 6 Mar 2024 16:55:45 +0800 Subject: [PATCH] feat(workflow): Add sync-feature-branch.yml to auto deploy feature branch --- .github/workflows/sync-feature-branch.yml | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/sync-feature-branch.yml diff --git a/.github/workflows/sync-feature-branch.yml b/.github/workflows/sync-feature-branch.yml new file mode 100644 index 000000000..c90d46bd8 --- /dev/null +++ b/.github/workflows/sync-feature-branch.yml @@ -0,0 +1,26 @@ +name: Deploy Feature Branch + +on: [push, pull_request] + +jobs: + build: + if: github.repository == 'oceanbase/oceanbase-design' + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [16.x] + os: [ubuntu-latest] + fail-fast: false + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + repository: dengfuping/oceanbase-design + path: feature + - name: Sync feature branch + uses: repo-sync/github-sync@v2 + with: + source_repo: 'oceanbase/oceanbase-design' + source_branch: 'feature' + destination_branch: 'feature' + github_token: ${{ secrets.GITHUB_TOKEN }}