-
Notifications
You must be signed in to change notification settings - Fork 20
38 lines (34 loc) · 1.17 KB
/
sync-feature-branch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Sync Feature Branch
on: [push, pull_request]
# on:
# # Runs on pushes targeting the default branch
# push:
# branches: ['feature']
# # Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:
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
# 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
# uses: repo-sync/github-sync@v2
# with:
# source_repo: 'dengfuping/oceanbase-design'
# source_branch: 'feature'
# destination_branch: 'feature'
# github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Sync feature branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git remote set-url --push origin https://dengfuping:[email protected]/dengfuping/oceanbase-design