Skip to content

Commit

Permalink
Update build.yml to autodetermine old Maven version
Browse files Browse the repository at this point in the history
  • Loading branch information
ascopes authored Sep 29, 2024
1 parent 6e8eb08 commit f1b715c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ jobs:

- name: Change Maven version to the prerequisite version
shell: bash
run: |-
# Use -T1 here as the plugins emit warnings about thread safety if we use the
# default concurrency settings for the project.
set -eux
version=3.8.2
./mvnw -T1 -B wrapper:wrapper -Dmaven="${version}"
run: >-
./mvnw -T1 -B wrapper:wrapper -Dmaven="$(
./mvnw -T1 -B -q -pl protobuf-maven-plugin help:evaluate
-DforceStdout -Dexpression='prerequisites.maven'
)"
- name: Install protoc to $PATH
shell: bash
Expand Down

0 comments on commit f1b715c

Please sign in to comment.