@@ -96,13 +96,13 @@ jobs:
96
96
key : gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
97
97
- name : Set up JDK 11
98
98
99
- if : ${{ startsWith ( inputs.branch, 'wip/2' ) }}
99
+ if : ${{ contains ( inputs.branch, 'wip/2' ) }}
100
100
with :
101
101
distribution : ' temurin'
102
102
java-version : 11
103
103
- name : Set up JDK 17
104
104
105
- if : ${{ !startsWith ( inputs.branch, 'wip/2' ) }}
105
+ if : ${{ !contains ( inputs.branch, 'wip/2' ) }}
106
106
with :
107
107
distribution : ' temurin'
108
108
java-version : 17
@@ -145,13 +145,13 @@ jobs:
145
145
key : gradle-db-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
146
146
- name : Set up JDK 11
147
147
148
- if : ${{ startsWith ( inputs.branch, 'wip/2' ) }}
148
+ if : ${{ contains ( inputs.branch, 'wip/2' ) }}
149
149
with :
150
150
distribution : ' temurin'
151
151
java-version : 11
152
152
- name : Set up JDK 17
153
153
154
- if : ${{ !startsWith ( inputs.branch, 'wip/2' ) }}
154
+ if : ${{ !contains ( inputs.branch, 'wip/2' ) }}
155
155
with :
156
156
distribution : ' temurin'
157
157
java-version : 17
@@ -264,14 +264,14 @@ jobs:
264
264
distribution : ' temurin'
265
265
java-version : 11
266
266
check-latest : true
267
- if : ${{ startsWith ( inputs.branch, 'wip/2' ) }}
267
+ if : ${{ contains ( inputs.branch, 'wip/2' ) }}
268
268
- name : Set up JDK 17
269
269
270
270
with :
271
271
distribution : ' temurin'
272
272
java-version : 17
273
273
check-latest : true
274
- if : ${{ !startsWith ( inputs.branch, 'wip/2' ) }}
274
+ if : ${{ !contains ( inputs.branch, 'wip/2' ) }}
275
275
- name : Export path to JDK 11
276
276
id : mainjdk-exportpath
277
277
run : echo "::set-output name=path::${JAVA_HOME}"
0 commit comments