-
Notifications
You must be signed in to change notification settings - Fork 12
43 lines (35 loc) · 1.27 KB
/
branch_example.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
39
40
41
42
43
name: Branch Example
on:
push:
jobs:
setup-mysql:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Create MySQL Branch
uses: wesql/[email protected]
with:
source_host: '47.93.127.119'
source_port: '15306'
source_user: 'root'
source_password: ${{ secrets.SOURCE_PASSWORD }}
include_databases: '*' # Optional
exclude_databases: 'information_schema,mysql,performance_schema,sys' # Optional
wescale_image: 'apecloud/apecloud-mysql-scale:0.3.8' # Optional
- name: Do Your Schema Migration
run: |
mysql -h127.0.0.1 -P15306 -e "create database if not exists foobar"
mysql -h127.0.0.1 -P15306 -e "create table if not exists foobar.account (id int primary key, name varchar(255))"
- name: Branch Diff
run: |
mysql -h127.0.0.1 -P15306 -e "Branch diff"
- name: Branch Prepare Merge Back
run: |
mysql -h127.0.0.1 -P15306 -e "Branch prepare_merge_back"
- name: Branch Merge Back
run: |
mysql -h127.0.0.1 -P15306 -e "Branch merge_back"
- name: Branch Show
run: |
mysql -h127.0.0.1 -P15306 -e "Branch show"