|
5 | 5 | pull_request:
|
6 | 6 | schedule:
|
7 | 7 | - cron: '0 3 * * *' # Every day at 3 AM
|
| 8 | + workflow_dispatch: |
8 | 9 |
|
9 | 10 | env:
|
10 | 11 | DOTTY_CI_RUN: true
|
|
42 | 43 | github.event_name == 'pull_request'
|
43 | 44 | && !contains(github.event.pull_request.body, '[skip ci]')
|
44 | 45 | && contains(github.event.pull_request.body, '[test_non_bootstrapped]')
|
| 46 | + ) |
| 47 | + || ( |
| 48 | + github.event_name == 'workflow_dispatch' |
| 49 | + && github.repository == 'lampepfl/dotty' |
45 | 50 | )"
|
46 | 51 | steps:
|
47 | 52 | - name: Set JDK 15 as default
|
|
82 | 87 | github.event_name == 'pull_request'
|
83 | 88 | && !contains(github.event.pull_request.body, '[skip ci]')
|
84 | 89 | && !contains(github.event.pull_request.body, '[skip test]')
|
| 90 | + ) |
| 91 | + || ( |
| 92 | + github.event_name == 'workflow_dispatch' |
| 93 | + && github.repository == 'lampepfl/dotty' |
85 | 94 | )"
|
86 | 95 |
|
87 | 96 | steps:
|
@@ -174,6 +183,10 @@ jobs:
|
174 | 183 | github.event_name == 'pull_request'
|
175 | 184 | && !contains(github.event.pull_request.body, '[skip ci]')
|
176 | 185 | && !contains(github.event.pull_request.body, '[skip community_build]')
|
| 186 | + ) |
| 187 | + || ( |
| 188 | + github.event_name == 'workflow_dispatch' |
| 189 | + && github.repository == 'lampepfl/dotty' |
177 | 190 | )"
|
178 | 191 |
|
179 | 192 | steps:
|
@@ -210,6 +223,10 @@ jobs:
|
210 | 223 | github.event_name == 'pull_request'
|
211 | 224 | && !contains(github.event.pull_request.body, '[skip ci]')
|
212 | 225 | && !contains(github.event.pull_request.body, '[skip community_build]')
|
| 226 | + ) |
| 227 | + || ( |
| 228 | + github.event_name == 'workflow_dispatch' |
| 229 | + && github.repository == 'lampepfl/dotty' |
213 | 230 | )"
|
214 | 231 |
|
215 | 232 | steps:
|
@@ -246,6 +263,10 @@ jobs:
|
246 | 263 | github.event_name == 'pull_request'
|
247 | 264 | && !contains(github.event.pull_request.body, '[skip ci]')
|
248 | 265 | && !contains(github.event.pull_request.body, '[skip test_sbt]')
|
| 266 | + ) |
| 267 | + || ( |
| 268 | + github.event_name == 'workflow_dispatch' |
| 269 | + && github.repository == 'lampepfl/dotty' |
249 | 270 | )"
|
250 | 271 |
|
251 | 272 | steps:
|
@@ -284,6 +305,10 @@ jobs:
|
284 | 305 | github.event_name == 'pull_request'
|
285 | 306 | && !contains(github.event.pull_request.body, '[skip ci]')
|
286 | 307 | && contains(github.event.pull_request.body, '[test_java8]')
|
| 308 | + ) |
| 309 | + || ( |
| 310 | + github.event_name == 'workflow_dispatch' |
| 311 | + && github.repository == 'lampepfl/dotty' |
287 | 312 | )"
|
288 | 313 |
|
289 | 314 | steps:
|
@@ -317,7 +342,7 @@ jobs:
|
317 | 342 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
318 | 343 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
319 | 344 | needs: [test_non_bootstrapped, test, community_build_a, community_build_b, test_sbt, test_java8]
|
320 |
| - if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'" |
| 345 | + if: "(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'lampepfl/dotty'" |
321 | 346 | env:
|
322 | 347 | NIGHTLYBUILD: yes
|
323 | 348 | PGP_PW: ${{ secrets.PGP_PW }} # PGP passphrase
|
@@ -352,7 +377,7 @@ jobs:
|
352 | 377 | - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
|
353 | 378 | - ${{ github.workspace }}/../../cache/general:/root/.cache
|
354 | 379 | needs: [publish_nightly]
|
355 |
| - if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'" |
| 380 | + if: "(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'lampepfl/dotty'" |
356 | 381 | env:
|
357 | 382 | NIGHTLYBUILD: yes
|
358 | 383 | BOT_TOKEN: ${{ secrets.BOT_TOKEN }} # If you need to change this:
|
|
0 commit comments