This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Feature Branch | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ['feature', 'dengfuping-workflow'] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
permissions: | |
contents: write | |
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: | |
ref: feature | |
# Sync `feature` branch from oceanbase/oceanbase-design to dengfuping/oceanbase-design | |
# `feature` branch will be deployed auto in Vercel after sync success | |
- name: Sync feature branch | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git pull https://dengfuping:[email protected]/dengfuping/oceanbase-design feature:feature | |
git push https://dengfuping:[email protected]/dengfuping/oceanbase-design feature:feature |