Skip to content

Commit

Permalink
use java-version-file
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrebruninmaif committed Dec 8, 2023
1 parent ce3ca19 commit f203f13
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@ jobs:
node-version-file: ".nvmrc"
cache: "yarn"
cache-dependency-path: javascript/yarn.lock
- name: Load Java version
run: |
export VERSION=$(cat ${{ github.workspace }}/.java-version)
echo "JAVA_VERSION=${VERSION}" >> $GITHUB_ENV
- name: Set up JDK ${{ env.JAVA_VERSION }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
java-version-file: ".java-version"
distribution: "temurin"
cache: "gradle"
- name: Run postgres
Expand Down

0 comments on commit f203f13

Please sign in to comment.