If T2900-java21 instal jdk 21
This commit is contained in:
parent
952c9dc6ef
commit
a21e4527fa
15
.github/workflows/maven-publish.yml
vendored
15
.github/workflows/maven-publish.yml
vendored
@ -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 }}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user