From 1901a98f906e3889eafb52756517b1f2c9d1355b Mon Sep 17 00:00:00 2001 From: Chris Preston Date: Fri, 24 May 2024 16:57:10 -0700 Subject: [PATCH] Parameterize java version --- .github/workflows/build-dev.yml | 1 + .github/workflows/build-package.yml | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index 978d3415..e1c0f490 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -12,6 +12,7 @@ jobs: MICROSERVICE_NAME: cirras-underwriting-api EXPORT_FILE: CIRRAS_UNDERWRITING_API_swagger.json EXPORT_PATH: cirras-underwriting-api/cirras-underwriting-api-rest-endpoints/target/swagger.json + JAVA_VERSION: 17 build-and-upload-npm-modules: uses: ./.github/workflows/build-npm.yml diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index a0e0bafc..573fb9d2 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -29,6 +29,10 @@ on: required: false type: string default: "150" + JAVA_VERSION: + required: false + type: string + default: "8" env: DIRECTORY_SUFFIX: ${{ contains(inputs.MICROSERVICE_NAME, '-api') && '-rest-endpoints' || '' }} @@ -49,7 +53,7 @@ jobs: - name: Set up JDK 8 uses: actions/setup-java@v3 with: - java-version: '8' + java-version: ${{ inputs.JAVA_VERSION }} distribution: 'adopt' - name: Set up nodejs