Skip to content

Commit a2b3bb6

Browse files
kkweonnicewook
andauthored
feat: autogenerate database when mapping table changes (#120)
* refactor: major refactoring split into packages and test coverage * feat: autogenerate database when mapping table changes * Update .github/workflows/generate-db.yaml Co-authored-by: JEONG HYUN SEOK <nicewook@hotmail.com> Co-authored-by: JEONG HYUN SEOK <nicewook@hotmail.com>
1 parent 2576817 commit a2b3bb6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/generate-db.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Generate Database
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "server/internal/data/mapping_table.pbtxt"
7+
workflow_dispatch:
8+
jobs:
9+
generate-database:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-go@v2
14+
with:
15+
go-version: "1.16"
16+
- run: (cd metadata-manager && go run main.go gen-meta)
17+
env:
18+
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
19+
MAPPING_FILE: "server/internal/data/mapping_table.pbtxt"
20+
DATABASE_OUT_FILE: "server/internal/data/database.pbtxt"
21+
- run: |
22+
git config --global user.name '코딩냄비'
23+
git config --global user.email 'kkweon@gmail.com'
24+
git add server/internal/data/database.pbtxt
25+
git commit -m 'chore: update database'
26+
git push

0 commit comments

Comments
 (0)