From 37e04e8bed4296df11a501cee355e05edef7070a Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Thu, 22 Feb 2024 19:28:50 +0200 Subject: [PATCH] Improve check for version --- .github/workflows/ci-it.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-it.yml b/.github/workflows/ci-it.yml index 090744d8..898978ba 100644 --- a/.github/workflows/ci-it.yml +++ b/.github/workflows/ci-it.yml @@ -29,7 +29,7 @@ jobs: - name: 'Determine Java Version' id: determineJavaVersion run: | - if [[ "${{ inputs.version && inputs.version || '4.0.0-SNAPSHOT' }}" == *"4.0.0"* ]]; then + if [ "${{ github.ref_name }}" == "main" ] || [[ "${{ inputs.version && inputs.version || '4.0.0-SNAPSHOT' }}" == *"4.0.0"* ]]; then JAVA_VERSION=17 else JAVA_VERSION=8