Skip to content

Commit d0a81c6

Browse files
committed
chore: add showcase step
1 parent 2d7e146 commit d0a81c6

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/showcase-version-check.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,17 @@ jobs:
3838
run: |
3939
version=$(awk -F'[<>]' '/gapic-showcase.version/{print $3; exit}' java-showcase/gapic-showcase/pom.xml)
4040
echo "version=$version" >> "$GITHUB_OUTPUT"
41+
- name: Set up Go
42+
uses: actions/setup-go@v5
43+
with:
44+
go-version: '1.24'
4145
- name: Extract showcase commit from librarian.yaml
4246
id: extract_commit
4347
shell: bash
4448
run: |
45-
commit=$(grep -A 1 "showcase:" librarian.yaml | grep "commit:" | awk '{print $2}')
49+
version=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
50+
commit=$(go run "github.com/googleapis/librarian/cmd/librarian@${version}" config get sources.showcase.commit)
4651
echo "commit=$commit" >> "$GITHUB_OUTPUT"
47-
- name: Set up Go
48-
uses: actions/setup-go@v5
49-
with:
50-
go-version: '1.24'
5152
- name: Verify showcase version and commit match
5253
shell: bash
5354
run: |

0 commit comments

Comments
 (0)