Skip to content

Commit

Permalink
fix(ct): avoid costly lookup of Java version to be used via Maven, gr…
Browse files Browse the repository at this point in the history
…ep from XML instead
  • Loading branch information
poikilotherm committed Apr 10, 2024
1 parent b028c26 commit b453a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/container_base_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: Determine Java version from package
- name: Determine Java version from Parent POM
run: |
echo "JAVA_VERSION=$(mvn -f modules/container-base -Pct help:evaluate -Dexpression=target.java.version -q -DforceStdout)" >> ${GITHUB_ENV}
echo "JAVA_VERSION=$(grep '<target.java.version>' modules/dataverse-parent/pom.xml | cut -f2 -d'>' | cut -f1 -d'<')" >> ${GITHUB_ENV}
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
Expand Down

0 comments on commit b453a12

Please sign in to comment.