From 81bbdaaa819d063309fd94eba508cb0d3cd38a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Mon, 11 Mar 2024 13:32:22 +0200 Subject: [PATCH] Make Java version a parameter --- .github/workflows/mavenLicenseCheck.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mavenLicenseCheck.yml b/.github/workflows/mavenLicenseCheck.yml index c538f30..a959f3c 100644 --- a/.github/workflows/mavenLicenseCheck.yml +++ b/.github/workflows/mavenLicenseCheck.yml @@ -39,6 +39,11 @@ on: type: string required: false default: '3.9.2' + javaVersion: + description: 'The version of Java set up to run the license-check build' + type: string + required: false + default: '17' secrets: gitlabAPIToken: description: 'The authentication token (scope: api) from gitlab.eclipse.org of the calling repository. Only required if license vetting is requested' @@ -102,7 +107,7 @@ jobs: - uses: actions/setup-java@v3 with: - java-version: '17' + java-version: ${{ inputs.javaVersion }} distribution: 'temurin' - name: Cache local Maven repository uses: actions/cache@v3