Skip to content

Commit 93e3e8f

Browse files
authored
chore: update gen check workflow (#14361)
1 parent ca7c369 commit 93e3e8f

2 files changed

Lines changed: 10 additions & 37 deletions

File tree

.github/workflows/generation_check.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@ jobs:
1717
- uses: actions/setup-go@v6
1818
with:
1919
go-version: '1.26.x'
20+
- name: Install Protoc
21+
uses: arduino/setup-protoc@v3
22+
with:
23+
version: "25.7"
2024
- name: Install tools
2125
run: |
22-
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.11 && \
23-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0 && \
24-
go install github.com/googleapis/gapic-generator-go/cmd/protoc-gen-go_gapic@v0.57.0 && \
25-
go install golang.org/x/tools/cmd/goimports@latest
26-
- name: Regeneration
27-
run: ./.github/workflows/regenerate.sh
26+
version=$(sed -n 's/^version: *//p' librarian.yaml)
27+
go run "github.com/googleapis/librarian/cmd/librarian@${version}" install
28+
- name: Regenerate
29+
run: |
30+
version=$(sed -n 's/^version: *//p' librarian.yaml)
31+
go run "github.com/googleapis/librarian/cmd/librarian@${version}" generate -all
2832
- name: Create issue on diff
2933
if: failure()
3034
env:

.github/workflows/regenerate.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)