File tree 3 files changed +10
-10
lines changed
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ inputs:
5
5
required : false
6
6
default : ' 17'
7
7
description : ' The Java version to compile and test with'
8
- java-distribution :
8
+ java-early-access :
9
9
required : false
10
- default : ' liberica '
11
- description : ' The Java distribution to use for the build '
10
+ default : ' false '
11
+ description : ' Whether the Java version is in early access '
12
12
java-toolchain :
13
13
required : false
14
14
default : ' false'
35
35
with :
36
36
develocity-access-key : ${{ inputs.develocity-access-key }}
37
37
java-version : ${{ inputs.java-version }}
38
- java-distribution : ${{ inputs.java-distribution }}
38
+ java-early-access : ${{ inputs.java-early-access }}
39
39
java-toolchain : ${{ inputs.java-toolchain }}
40
40
- name : Build
41
41
id : build
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ inputs:
5
5
required : false
6
6
default : ' 17'
7
7
description : ' The Java version to use for the build'
8
- java-distribution :
8
+ java-early-access :
9
9
required : false
10
- default : ' liberica '
11
- description : ' The Java distribution to use for the build '
10
+ default : ' false '
11
+ description : ' Whether the Java version is in early access '
12
12
java-toolchain :
13
13
required : false
14
14
default : ' false'
27
27
- name : Set Up Java
28
28
uses : actions/setup-java@v4
29
29
with :
30
- distribution : ${{ inputs.java-distribution }}
30
+ distribution : ${{ inputs.java-early-access == 'true' && 'temurin' || 'liberica' }}
31
31
java-version : |
32
- ${{ inputs.java-version }}
32
+ ${{ inputs.java-early-access == 'true' && format('{0}-ea', inputs.java-version) || inputs.java- version }}
33
33
${{ inputs.java-toolchain == 'true' && '17' || '' }}
34
34
- name : Set Up Gradle
35
35
uses : gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
Original file line number Diff line number Diff line change 43
43
uses : ./.github/actions/build
44
44
with :
45
45
java-version : ${{ matrix.java.version }}
46
- java-distribution : ${{ matrix.java.distribution || 'liberica ' }}
46
+ java-early-access : ${{ matrix.java.early-access || 'false ' }}
47
47
java-toolchain : ${{ matrix.java.toolchain }}
48
48
develocity-access-key : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
49
49
- name : Send Notification
You can’t perform that action at this time.
0 commit comments