@@ -18,11 +18,14 @@ 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 != 'pull_request'
22
+ || (
23
+ !contains(github.event.head_commit.message, '[skip ci]')
24
+ && (
25
+ contains(github.event.head_commit.message, '[test_non_bootstrapped]')
26
+ || (github.event_name == 'push' && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))
27
+ )
28
+ )"
26
29
steps :
27
30
- name : Set JDK 15 as default
28
31
run : echo "/usr/lib/jvm/java-15-openjdk-amd64/bin" >> $GITHUB_PATH
52
55
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
53
56
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
54
57
- ${{ github.workspace }}/../../cache/general:/root/.cache
55
- if : " !(github.event_name == 'push' &&
56
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
58
+ if : " github.event_name == 'schedule'
59
+ || (
60
+ !contains(github.event.head_commit.message, '[skip ci]')
61
+ && !(github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))
62
+ )"
57
63
58
64
steps :
59
65
- name : Set JDK 15 as default
78
84
79
85
test_windows :
80
86
runs-on : [self-hosted, Windows]
81
- if : " !(github.event_name == 'push' &&
82
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
87
+ if : " github.event_name == 'schedule'
88
+ || (
89
+ !contains(github.event.head_commit.message, '[skip ci]')
90
+ && !contains(github.event.head_commit.message, '[skip test_windows]')
91
+ && !(github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))
92
+ )"
83
93
84
94
steps :
85
95
- name : Git Checkout
@@ -101,6 +111,11 @@ jobs:
101
111
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
102
112
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
103
113
- ${{ github.workspace }}/../../cache/general:/root/.cache
114
+ if : " github.event_name == 'schedule'
115
+ || (
116
+ !contains(github.event.head_commit.message, '[skip ci]')
117
+ && !contains(github.event.head_commit.message, '[skip community_build]')
118
+ )"
104
119
105
120
steps :
106
121
- name : Checkout cleanup script
@@ -129,6 +144,11 @@ jobs:
129
144
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
130
145
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
131
146
- ${{ github.workspace }}/../../cache/general:/root/.cache
147
+ if : " github.event_name == 'schedule'
148
+ || (
149
+ !contains(github.event.head_commit.message, '[skip ci]')
150
+ && !contains(github.event.head_commit.message, '[skip community_build]')
151
+ )"
132
152
133
153
steps :
134
154
- name : Checkout cleanup script
@@ -157,11 +177,14 @@ jobs:
157
177
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
158
178
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
159
179
- ${{ 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'
180
+ if : " github.event_name == 'schedule'
181
+ || (
182
+ !contains(github.event.head_commit.message, '[skip ci]')
183
+ && (
184
+ contains(github.event.head_commit.message, '[test_sbt]')
185
+ || (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/'))
186
+ )
187
+ )"
165
188
166
189
steps :
167
190
- name : Checkout cleanup script
@@ -188,12 +211,18 @@ jobs:
188
211
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
189
212
- ${{ github.workspace }}/../../cache/general:/root/.cache
190
213
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'"
214
+ if : " github.event_name == 'schedule'
215
+ || (
216
+ !contains(github.event.head_commit.message, '[skip ci]')
217
+ && (
218
+ contains(github.event.head_commit.message, '[test_java8]')
219
+ || (
220
+ github.event_name == 'push'
221
+ && startsWith(github.event.ref, 'refs/tags/')
222
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
223
+ )
224
+ )
225
+ )"
197
226
198
227
steps :
199
228
- name : Set JDK 8 as default
@@ -225,7 +254,7 @@ jobs:
225
254
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
226
255
- ${{ github.workspace }}/../../cache/general:/root/.cache
227
256
needs : [test_non_bootstrapped, test, community_build_a, community_build_b, test_sbt, test_java8]
228
- if : github.event_name == 'schedule'
257
+ if : " github.event_name == 'schedule'"
229
258
env :
230
259
NIGHTLYBUILD : yes
231
260
PGP_PW : ${{ secrets.PGP_PW }} # PGP passphrase
@@ -259,7 +288,7 @@ jobs:
259
288
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
260
289
- ${{ github.workspace }}/../../cache/general:/root/.cache
261
290
needs : [publish_nightly]
262
- if : github.event_name == 'schedule'
291
+ if : " github.event_name == 'schedule'"
263
292
env :
264
293
NIGHTLYBUILD : yes
265
294
BOT_TOKEN : ${{ secrets.BOT_TOKEN }} # If you need to change this:
@@ -300,9 +329,9 @@ jobs:
300
329
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
301
330
- ${{ github.workspace }}/../../cache/general:/root/.cache
302
331
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-')
332
+ if : " github.event_name == 'push'
333
+ && startsWith(github.event.ref, 'refs/tags/')
334
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
306
335
307
336
env :
308
337
RELEASEBUILD : yes
@@ -382,9 +411,9 @@ jobs:
382
411
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
383
412
- ${{ github.workspace }}/../../cache/general:/root/.cache
384
413
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-')
414
+ if : " github.event_name == 'push'
415
+ && startsWith(github.event.ref, 'refs/tags/')
416
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
388
417
389
418
env :
390
419
RELEASEBUILD : yes
@@ -426,8 +455,8 @@ jobs:
426
455
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
427
456
- ${{ github.workspace }}/../../cache/general:/root/.cache
428
457
needs : [community_build_a, community_build_b, test_sbt]
429
- if : github.event_name == 'push' &&
430
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
458
+ if : " github.event_name == 'push'
459
+ && startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
431
460
432
461
env :
433
462
RELEASEBUILD : yes
0 commit comments