Skip to content

Commit

Permalink
fix proto gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
haiyizxx committed Jan 21, 2025
1 parent 8041198 commit 6b378ee
Show file tree
Hide file tree
Showing 4 changed files with 24,388 additions and 22,697 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-proto-generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
go install github.com/rakyll/statik
- name: Generate proto files and docs
run: make proto-format proto-gen
run: make proto-format proto-gen proto-swagger-gen

- name: Check for changes
run: |
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ tofnd-client:

proto-all: proto-format proto-lint proto-gen

protoVer=0.13.0
protoVer=0.14.0
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)
protoImage=$(DOCKER) run -u 0 --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)

proto-gen:
@echo "Generating Protobuf files"
Expand All @@ -211,8 +211,7 @@ proto-gen:
proto-swagger-gen:
@make clean
@echo "Downloading Protobuf dependencies"
@make proto-swagger-download-dep

@make proto-swagger-download-deps
@echo "Generating Protobuf Swagger endpoint"
@$(protoImage) sh ./scripts/protoc-swagger-gen.sh

Expand Down
Loading

0 comments on commit 6b378ee

Please sign in to comment.