@@ -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 == 'schedule'
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
0 commit comments