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 }}