File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,32 +36,17 @@ jobs:
3636 shell : bash
3737 run : |
3838 version=$(mvn help:evaluate -f java-showcase/gapic-showcase/pom.xml -Dexpression=gapic-showcase.version -q -DforceStdout 2>/dev/null || true)
39- if [ -z "$version" ]; then
40- echo "Warning: Maven evaluation failed. Falling back to XML parsing of pom.xml..."
41- version=$(grep -oE '<gapic-showcase\.version>[0-9]+\.[0-9]+\.[0-9]+</gapic-showcase\.version>' java-showcase/gapic-showcase/pom.xml | sed -E 's/<[^>]+>//g')
42- fi
43- if [ -z "$version" ]; then
44- echo "Error: Could not find gapic-showcase.version in pom.xml"
45- exit 1
46- fi
4739 echo "version=$version" >> "$GITHUB_OUTPUT"
48-
4940 - name : Extract showcase commit from librarian.yaml
5041 id : extract_commit
5142 shell : bash
5243 run : |
5344 commit=$(grep -A 1 "showcase:" librarian.yaml | grep "commit:" | awk '{print $2}')
54- if [ -z "$commit" ]; then
55- echo "Error: Could not find showcase commit in librarian.yaml"
56- exit 1
57- fi
5845 echo "commit=$commit" >> "$GITHUB_OUTPUT"
59-
6046 - name : Set up Go
6147 uses : actions/setup-go@v5
6248 with :
6349 go-version : ' 1.24'
64-
6550 - name : Verify showcase version and commit match
6651 run : |
6752 go run .github/scripts/verify_showcase_version.go \
You can’t perform that action at this time.
0 commit comments