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 b141098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/container_base_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
ref: ${{ matrix.branch }}
- name: Determine Java version from package
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 b141098

Please sign in to comment.