Skip to content

Commit

Permalink
feat(workflow): Add sync-feature-branch.yml to auto deploy feature br…
Browse files Browse the repository at this point in the history
…anch
  • Loading branch information
dengfuping committed Mar 6, 2024
1 parent 3d6d168 commit 6086d47
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sync-feature-branch.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 6086d47

Please sign in to comment.