Skip to content

Commit 540b59e

Browse files
committed
Add manual trigger for all dependencies of publish nightyl
1 parent c50d341 commit 540b59e

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
pull_request:
66
schedule:
77
- cron: '0 3 * * *' # Every day at 3 AM
8+
workflow_dispatch:
89

910
env:
1011
DOTTY_CI_RUN: true
@@ -42,6 +43,10 @@ jobs:
4243
github.event_name == 'pull_request'
4344
&& !contains(github.event.pull_request.body, '[skip ci]')
4445
&& contains(github.event.pull_request.body, '[test_non_bootstrapped]')
46+
)
47+
|| (
48+
github.event_name == 'workflow_dispatch'
49+
&& github.repository == 'lampepfl/dotty'
4550
)"
4651
steps:
4752
- name: Set JDK 15 as default
@@ -82,6 +87,10 @@ jobs:
8287
github.event_name == 'pull_request'
8388
&& !contains(github.event.pull_request.body, '[skip ci]')
8489
&& !contains(github.event.pull_request.body, '[skip test]')
90+
)
91+
|| (
92+
github.event_name == 'workflow_dispatch'
93+
&& github.repository == 'lampepfl/dotty'
8594
)"
8695

8796
steps:
@@ -174,6 +183,10 @@ jobs:
174183
github.event_name == 'pull_request'
175184
&& !contains(github.event.pull_request.body, '[skip ci]')
176185
&& !contains(github.event.pull_request.body, '[skip community_build]')
186+
)
187+
|| (
188+
github.event_name == 'workflow_dispatch'
189+
&& github.repository == 'lampepfl/dotty'
177190
)"
178191

179192
steps:
@@ -210,6 +223,10 @@ jobs:
210223
github.event_name == 'pull_request'
211224
&& !contains(github.event.pull_request.body, '[skip ci]')
212225
&& !contains(github.event.pull_request.body, '[skip community_build]')
226+
)
227+
|| (
228+
github.event_name == 'workflow_dispatch'
229+
&& github.repository == 'lampepfl/dotty'
213230
)"
214231

215232
steps:
@@ -246,6 +263,10 @@ jobs:
246263
github.event_name == 'pull_request'
247264
&& !contains(github.event.pull_request.body, '[skip ci]')
248265
&& !contains(github.event.pull_request.body, '[skip test_sbt]')
266+
)
267+
|| (
268+
github.event_name == 'workflow_dispatch'
269+
&& github.repository == 'lampepfl/dotty'
249270
)"
250271

251272
steps:
@@ -284,6 +305,10 @@ jobs:
284305
github.event_name == 'pull_request'
285306
&& !contains(github.event.pull_request.body, '[skip ci]')
286307
&& contains(github.event.pull_request.body, '[test_java8]')
308+
)
309+
|| (
310+
github.event_name == 'workflow_dispatch'
311+
&& github.repository == 'lampepfl/dotty'
287312
)"
288313

289314
steps:
@@ -317,7 +342,7 @@ jobs:
317342
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
318343
- ${{ github.workspace }}/../../cache/general:/root/.cache
319344
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'"
321346
env:
322347
NIGHTLYBUILD: yes
323348
PGP_PW: ${{ secrets.PGP_PW }} # PGP passphrase
@@ -352,7 +377,7 @@ jobs:
352377
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
353378
- ${{ github.workspace }}/../../cache/general:/root/.cache
354379
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'"
356381
env:
357382
NIGHTLYBUILD: yes
358383
BOT_TOKEN: ${{ secrets.BOT_TOKEN }} # If you need to change this:

0 commit comments

Comments
 (0)