From 96f67efe32b135d6c5c0558a25ccbfffa64e7c9d Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 18 Jul 2024 11:28:44 +0200 Subject: [PATCH] ci(swagger): run protogen-go before Signed-off-by: Ettore Di Giacinto --- .github/workflows/update_swagger.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_swagger.yaml b/.github/workflows/update_swagger.yaml index 878f5a72..b59e78c0 100644 --- a/.github/workflows/update_swagger.yaml +++ b/.github/workflows/update_swagger.yaml @@ -13,11 +13,17 @@ jobs: - uses: actions/setup-go@v5 with: go-version: 'stable' + - name: Dependencies + run: | + sudo apt-get update + sudo apt-get install protobuf-compiler - run: | go install github.com/swaggo/swag/cmd/swag@latest + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@1958fcbe2ca8bd93af633f11e97d44e567e945af + go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.2 - name: Bump swagger 🔧 run: | - make swagger + make protogen-go swagger - name: Create Pull Request uses: peter-evans/create-pull-request@v6 with: