From f203f13761bdc5ed9bbdaceb5fe79d2bd96fbe70 Mon Sep 17 00:00:00 2001 From: pierrebruninmaif Date: Fri, 8 Dec 2023 16:17:13 +0100 Subject: [PATCH] use java-version-file --- .github/workflows/build.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e6363fd..33f35bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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