|
36 | 36 |
|
37 | 37 | check_core:
|
38 | 38 | name: Check Core
|
| 39 | + # Don't run nightly builds for forks. |
| 40 | + if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule' |
39 | 41 | runs-on: ubuntu-latest
|
40 | 42 | strategy:
|
41 | 43 | matrix:
|
@@ -104,6 +106,8 @@ jobs:
|
104 | 106 |
|
105 | 107 | check_models:
|
106 | 108 | name: Check Models
|
| 109 | + # Don't run nightly builds for forks. |
| 110 | + if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule' |
107 | 111 | runs-on: ubuntu-latest
|
108 | 112 | strategy:
|
109 | 113 | matrix:
|
@@ -150,6 +154,8 @@ jobs:
|
150 | 154 | # Builds package distribution files for PyPI.
|
151 | 155 | build_package:
|
152 | 156 | name: Build Package
|
| 157 | + # Don't run nightly builds for forks. |
| 158 | + if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule' |
153 | 159 | runs-on: ubuntu-latest
|
154 | 160 |
|
155 | 161 | steps:
|
@@ -216,6 +222,8 @@ jobs:
|
216 | 222 | # Tests installing from the distribution files.
|
217 | 223 | test_package:
|
218 | 224 | name: Test Package
|
| 225 | + # Don't run nightly builds for forks. |
| 226 | + if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule' |
219 | 227 | needs: [build_package] # needs the package artifact created from 'build_package' job.
|
220 | 228 | runs-on: ubuntu-latest
|
221 | 229 | strategy:
|
@@ -253,6 +261,8 @@ jobs:
|
253 | 261 | # Builds Docker image from the core distribution files and uploads to Docker Hub.
|
254 | 262 | docker:
|
255 | 263 | name: Docker
|
| 264 | + # Don't run nightly builds for forks. |
| 265 | + if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule' |
256 | 266 | needs: [build_package] # needs the package artifact created from 'build_package' job.
|
257 | 267 | runs-on: ubuntu-latest
|
258 | 268 |
|
@@ -305,6 +315,8 @@ jobs:
|
305 | 315 | # allennlp-docs repo.
|
306 | 316 | docs:
|
307 | 317 | name: Docs
|
| 318 | + # Don't run nightly builds for forks. |
| 319 | + if: github.repository == 'allenai/allennlp' || github.event_name != 'schedule' |
308 | 320 | runs-on: ubuntu-latest
|
309 | 321 |
|
310 | 322 | steps:
|
|
0 commit comments