If T2900-java21 instal jdk 21
This commit is contained in:
@@ -29,13 +29,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
maven-version: '3.9.9'
|
maven-version: '3.9.9'
|
||||||
|
|
||||||
- name: Print JDK version
|
- name: Set up JDK 21
|
||||||
run: |
|
if: github.ref == 'refs/heads/feature/T2900-java21'
|
||||||
echo "Installing JDK version: $JAVA_VERSION"
|
uses: actions/setup-java@v4
|
||||||
env:
|
with:
|
||||||
JAVA_VERSION: ${{ secrets.JAVA_VERSION }}
|
java-version: '21'
|
||||||
|
distribution: 'corretto'
|
||||||
|
cache: maven
|
||||||
|
|
||||||
- name: Set up JDK
|
- name: Set up JDK from ENV
|
||||||
|
if: github.ref != 'refs/heads/feature/T2900-java21'
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '${{ secrets.JAVA_VERSION }}'
|
java-version: '${{ secrets.JAVA_VERSION }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user