Improve check for version
This commit is contained in:
committed by
GitHub
parent
836193b4b0
commit
37e04e8bed
2
.github/workflows/ci-it.yml
vendored
2
.github/workflows/ci-it.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user