Skip to content

Commit a633e93

Browse files
Merge pull request #11461 from romanowski/scaladoc/add-manual-dispatch-for-nightlies
Publish nightlies on workflow_dispatch event
2 parents 7fa8beb + 540b59e commit a633e93

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ jobs:
4343
github.event_name == 'pull_request'
4444
&& !contains(github.event.pull_request.body, '[skip ci]')
4545
&& contains(github.event.pull_request.body, '[test_non_bootstrapped]')
46+
)
47+
|| (
48+
github.event_name == 'workflow_dispatch'
49+
&& github.repository == 'lampepfl/dotty'
4650
)"
4751
steps:
4852
- name: Set JDK 15 as default
@@ -83,6 +87,10 @@ jobs:
8387
github.event_name == 'pull_request'
8488
&& !contains(github.event.pull_request.body, '[skip ci]')
8589
&& !contains(github.event.pull_request.body, '[skip test]')
90+
)
91+
|| (
92+
github.event_name == 'workflow_dispatch'
93+
&& github.repository == 'lampepfl/dotty'
8694
)"
8795

8896
steps:
@@ -175,6 +183,10 @@ jobs:
175183
github.event_name == 'pull_request'
176184
&& !contains(github.event.pull_request.body, '[skip ci]')
177185
&& !contains(github.event.pull_request.body, '[skip community_build]')
186+
)
187+
|| (
188+
github.event_name == 'workflow_dispatch'
189+
&& github.repository == 'lampepfl/dotty'
178190
)"
179191

180192
steps:
@@ -211,6 +223,10 @@ jobs:
211223
github.event_name == 'pull_request'
212224
&& !contains(github.event.pull_request.body, '[skip ci]')
213225
&& !contains(github.event.pull_request.body, '[skip community_build]')
226+
)
227+
|| (
228+
github.event_name == 'workflow_dispatch'
229+
&& github.repository == 'lampepfl/dotty'
214230
)"
215231

216232
steps:
@@ -247,6 +263,10 @@ jobs:
247263
github.event_name == 'pull_request'
248264
&& !contains(github.event.pull_request.body, '[skip ci]')
249265
&& !contains(github.event.pull_request.body, '[skip test_sbt]')
266+
)
267+
|| (
268+
github.event_name == 'workflow_dispatch'
269+
&& github.repository == 'lampepfl/dotty'
250270
)"
251271

252272
steps:
@@ -285,6 +305,10 @@ jobs:
285305
github.event_name == 'pull_request'
286306
&& !contains(github.event.pull_request.body, '[skip ci]')
287307
&& contains(github.event.pull_request.body, '[test_java8]')
308+
)
309+
|| (
310+
github.event_name == 'workflow_dispatch'
311+
&& github.repository == 'lampepfl/dotty'
288312
)"
289313

290314
steps:
@@ -353,7 +377,7 @@ jobs:
353377
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
354378
- ${{ github.workspace }}/../../cache/general:/root/.cache
355379
needs: [publish_nightly]
356-
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'"
380+
if: "(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'lampepfl/dotty'"
357381
env:
358382
NIGHTLYBUILD: yes
359383
BOT_TOKEN: ${{ secrets.BOT_TOKEN }} # If you need to change this:

0 commit comments

Comments
 (0)