Skip to content

Commit

Permalink
Parameterize java version
Browse files Browse the repository at this point in the history
  • Loading branch information
vivid-cpreston committed May 24, 2024
1 parent e5f63e6 commit 1901a98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' || '' }}
Expand All @@ -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
Expand Down

0 comments on commit 1901a98

Please sign in to comment.