@@ -18,11 +18,16 @@ jobs:
18
18
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
19
19
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
20
20
- ${{ github.workspace }}/../../cache/general:/root/.cache
21
- if : " (
22
- github.event_name == 'push' &&
23
- !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
24
- ) ||
25
- github.event_name == 'schedule')"
21
+ if : " github.event_name == 'schedule'
22
+ || (
23
+ github.event_name == 'push'
24
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
25
+ )
26
+ || (
27
+ github.event_name == 'pull_request'
28
+ && !contains(github.event.head_commit.message, '[skip ci]')
29
+ && contains(github.event.head_commit.message, '[test_non_bootstrapped]')
30
+ )"
26
31
steps :
27
32
- name : Set JDK 15 as default
28
33
run : echo "/usr/lib/jvm/java-15-openjdk-amd64/bin" >> $GITHUB_PATH
52
57
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
53
58
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
54
59
- ${{ github.workspace }}/../../cache/general:/root/.cache
55
- if : " !(github.event_name == 'push' &&
56
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
60
+ if : " github.event_name == 'schedule'
61
+ || (
62
+ github.event_name == 'push'
63
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
64
+ )
65
+ || (
66
+ github.event_name == 'pull_request'
67
+ && !contains(github.event.head_commit.message, '[skip ci]')
68
+ && !contains(github.event.head_commit.message, '[skip test]')
69
+ )"
57
70
58
71
steps :
59
72
- name : Set JDK 15 as default
78
91
79
92
test_windows :
80
93
runs-on : [self-hosted, Windows]
81
- if : " !(github.event_name == 'push' &&
82
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
94
+ if : " github.event_name == 'schedule'
95
+ || (
96
+ github.event_name == 'push'
97
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
98
+ )
99
+ || (
100
+ github.event_name == 'pull_request'
101
+ && !contains(github.event.head_commit.message, '[skip ci]')
102
+ && !contains(github.event.head_commit.message, '[skip test_windows]')
103
+ )"
83
104
84
105
steps :
85
106
- name : Git Checkout
@@ -101,6 +122,16 @@ jobs:
101
122
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
102
123
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
103
124
- ${{ github.workspace }}/../../cache/general:/root/.cache
125
+ if : " github.event_name == 'schedule'
126
+ || (
127
+ github.event_name == 'push'
128
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
129
+ )
130
+ || (
131
+ github.event_name == 'pull_request'
132
+ && !contains(github.event.head_commit.message, '[skip ci]')
133
+ && !contains(github.event.head_commit.message, '[skip community_build]')
134
+ )"
104
135
105
136
steps :
106
137
- name : Checkout cleanup script
@@ -129,6 +160,16 @@ jobs:
129
160
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
130
161
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
131
162
- ${{ github.workspace }}/../../cache/general:/root/.cache
163
+ if : " github.event_name == 'schedule'
164
+ || (
165
+ github.event_name == 'push'
166
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
167
+ )
168
+ || (
169
+ github.event_name == 'pull_request'
170
+ && !contains(github.event.head_commit.message, '[skip ci]')
171
+ && !contains(github.event.head_commit.message, '[skip community_build]')
172
+ )"
132
173
133
174
steps :
134
175
- name : Checkout cleanup script
@@ -157,11 +198,16 @@ jobs:
157
198
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
158
199
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
159
200
- ${{ github.workspace }}/../../cache/general:/root/.cache
160
- if : (
161
- github.event_name == 'push' &&
162
- startsWith(github.event.ref, 'refs/tags/')
163
- ) ||
164
- github.event_name == 'schedule'
201
+ if : " github.event_name == 'schedule'
202
+ || (
203
+ github.event_name == 'push'
204
+ && startsWith(github.event.ref, 'refs/tags/')
205
+ )
206
+ || (
207
+ github.event_name == 'pull_request'
208
+ && !contains(github.event.head_commit.message, '[skip ci]')
209
+ && contains(github.event.head_commit.message, '[test_sbt]')
210
+ )"
165
211
166
212
steps :
167
213
- name : Checkout cleanup script
@@ -188,12 +234,17 @@ jobs:
188
234
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
189
235
- ${{ github.workspace }}/../../cache/general:/root/.cache
190
236
191
- if : " (
192
- github.event_name == 'push' &&
193
- startsWith(github.event.ref, 'refs/tags/') &&
194
- !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
195
- ) ||
196
- github.event_name == 'schedule'"
237
+ if : " github.event_name == 'schedule'
238
+ || (
239
+ github.event_name == 'push'
240
+ && startsWith(github.event.ref, 'refs/tags/')
241
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
242
+ )
243
+ || (
244
+ github.event_name == 'pull_request'
245
+ && !contains(github.event.head_commit.message, '[skip ci]')
246
+ && contains(github.event.head_commit.message, '[test_java8]')
247
+ )"
197
248
198
249
steps :
199
250
- name : Set JDK 8 as default
@@ -225,7 +276,7 @@ jobs:
225
276
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
226
277
- ${{ github.workspace }}/../../cache/general:/root/.cache
227
278
needs : [test_non_bootstrapped, test, community_build_a, community_build_b, test_sbt, test_java8]
228
- if : github.event_name == 'schedule'
279
+ if : " github.event_name == 'schedule'"
229
280
env :
230
281
NIGHTLYBUILD : yes
231
282
PGP_PW : ${{ secrets.PGP_PW }} # PGP passphrase
@@ -259,7 +310,7 @@ jobs:
259
310
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
260
311
- ${{ github.workspace }}/../../cache/general:/root/.cache
261
312
needs : [publish_nightly]
262
- if : github.event_name == 'schedule'
313
+ if : " github.event_name == 'schedule'"
263
314
env :
264
315
NIGHTLYBUILD : yes
265
316
BOT_TOKEN : ${{ secrets.BOT_TOKEN }} # If you need to change this:
@@ -300,9 +351,9 @@ jobs:
300
351
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
301
352
- ${{ github.workspace }}/../../cache/general:/root/.cache
302
353
needs : [test_non_bootstrapped, test, community_build_a, community_build_b, test_sbt, test_java8]
303
- if : github.event_name == 'push' &&
304
- startsWith(github.event.ref, 'refs/tags/') &&
305
- !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
354
+ if : " github.event_name == 'push'
355
+ && startsWith(github.event.ref, 'refs/tags/')
356
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
306
357
307
358
env :
308
359
RELEASEBUILD : yes
@@ -382,9 +433,9 @@ jobs:
382
433
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
383
434
- ${{ github.workspace }}/../../cache/general:/root/.cache
384
435
needs : [publish_release]
385
- if : github.event_name == 'push' &&
386
- startsWith(github.event.ref, 'refs/tags/') &&
387
- !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
436
+ if : " github.event_name == 'push'
437
+ && startsWith(github.event.ref, 'refs/tags/')
438
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
388
439
389
440
env :
390
441
RELEASEBUILD : yes
@@ -426,8 +477,8 @@ jobs:
426
477
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
427
478
- ${{ github.workspace }}/../../cache/general:/root/.cache
428
479
needs : [community_build_a, community_build_b, test_sbt]
429
- if : github.event_name == 'push' &&
430
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
480
+ if : " github.event_name == 'push'
481
+ && startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
431
482
432
483
env :
433
484
RELEASEBUILD : yes
0 commit comments