Skip to content

config(workflow): Add sync-feature-branch.yml to auto deploy feature branch #2

config(workflow): Add sync-feature-branch.yml to auto deploy feature branch

config(workflow): Add sync-feature-branch.yml to auto deploy feature branch #2

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