Skip to content

Commit

Permalink
auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-Shan committed Sep 1, 2023
1 parent 79275e3 commit e7499e4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/code-gen-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/setup-go@v3

- run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
- run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3

# check out master 分支
- name: check out master
Expand All @@ -28,13 +28,6 @@ jobs:
ref: master
path: ./master

# checkout go 分支
- name: Checkout go branch
uses: actions/checkout@v3
with:
ref: go-code-gen
path: ./go-code-gen

# 在master 中生成代码
- name: generate proto code
run:
Expand All @@ -43,6 +36,13 @@ jobs:
protoc --go-grpc_out=./code_gen protos/*.proto
working-directory: ./master

# checkout go 分支
- name: Checkout go branch
uses: actions/checkout@v3
with:
ref: go-code-gen
path: ./go-code-gen

# 清理 go code gen 中的Go文件和workflow文件
- name: remove old gen files
run: |
Expand Down

0 comments on commit e7499e4

Please sign in to comment.