|
58 | 58 | uses: WordPress/wordpress-develop/.github/workflows/reusable-prepare-gutenberg.yml@trunk |
59 | 59 | permissions: |
60 | 60 | contents: read |
61 | | - if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} |
| 61 | + if: | |
| 62 | + github.repository == 'WordPress/wordpress-develop' || ( |
| 63 | + github.event_name == 'pull_request' && ( |
| 64 | + ! github.event.repository.private || |
| 65 | + ! github.event.pull_request.draft || |
| 66 | + contains( github.event.pull_request.labels.*.name, 'Draft Workflow Runs' ) |
| 67 | + ) |
| 68 | + ) |
62 | 69 |
|
63 | 70 | # |
64 | 71 | # Creates a PHPUnit test job for each PHP/MySQL combination. |
|
76 | 83 | secrets: |
77 | 84 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
78 | 85 | WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }} |
79 | | - if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }} |
| 86 | + if: | |
| 87 | + startsWith( github.repository, 'WordPress/' ) && ( |
| 88 | + github.repository == 'WordPress/wordpress-develop' || ( |
| 89 | + github.event_name == 'pull_request' && ( |
| 90 | + ! github.event.repository.private || |
| 91 | + ! github.event.pull_request.draft || |
| 92 | + contains( github.event.pull_request.labels.*.name, 'Draft Workflow Runs' ) |
| 93 | + ) |
| 94 | + ) |
| 95 | + ) |
80 | 96 | strategy: |
81 | 97 | fail-fast: false |
82 | 98 | matrix: |
@@ -159,7 +175,16 @@ jobs: |
159 | 175 | secrets: |
160 | 176 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
161 | 177 | WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }} |
162 | | - if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }} |
| 178 | + if: | |
| 179 | + startsWith( github.repository, 'WordPress/' ) && ( |
| 180 | + github.repository == 'WordPress/wordpress-develop' || ( |
| 181 | + github.event_name == 'pull_request' && ( |
| 182 | + ! github.event.repository.private || |
| 183 | + ! github.event.pull_request.draft || |
| 184 | + contains( github.event.pull_request.labels.*.name, 'Draft Workflow Runs' ) |
| 185 | + ) |
| 186 | + ) |
| 187 | + ) |
163 | 188 | strategy: |
164 | 189 | fail-fast: false |
165 | 190 | matrix: |
@@ -217,7 +242,16 @@ jobs: |
217 | 242 | secrets: |
218 | 243 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
219 | 244 | WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }} |
220 | | - if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }} |
| 245 | + if: | |
| 246 | + startsWith( github.repository, 'WordPress/' ) && ( |
| 247 | + github.repository == 'WordPress/wordpress-develop' || ( |
| 248 | + github.event_name == 'pull_request' && ( |
| 249 | + ! github.event.repository.private || |
| 250 | + ! github.event.pull_request.draft || |
| 251 | + contains( github.event.pull_request.labels.*.name, 'Draft Workflow Runs' ) |
| 252 | + ) |
| 253 | + ) |
| 254 | + ) |
221 | 255 | strategy: |
222 | 256 | fail-fast: false |
223 | 257 | matrix: |
@@ -264,7 +298,16 @@ jobs: |
264 | 298 | secrets: |
265 | 299 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
266 | 300 | WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }} |
267 | | - if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }} |
| 301 | + if: | |
| 302 | + startsWith( github.repository, 'WordPress/' ) && ( |
| 303 | + github.repository == 'WordPress/wordpress-develop' || ( |
| 304 | + github.event_name == 'pull_request' && ( |
| 305 | + ! github.event.repository.private || |
| 306 | + ! github.event.pull_request.draft || |
| 307 | + contains( github.event.pull_request.labels.*.name, 'Draft Workflow Runs' ) |
| 308 | + ) |
| 309 | + ) |
| 310 | + ) |
268 | 311 | strategy: |
269 | 312 | fail-fast: false |
270 | 313 | matrix: |
@@ -298,7 +341,13 @@ jobs: |
298 | 341 | secrets: |
299 | 342 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
300 | 343 | WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }} |
301 | | - if: ${{ ! startsWith( github.repository, 'WordPress/' ) && github.event_name == 'pull_request' }} |
| 344 | + if: | |
| 345 | + ! startsWith( github.repository, 'WordPress/' ) && |
| 346 | + github.event_name == 'pull_request' && ( |
| 347 | + ! github.event.repository.private || |
| 348 | + ! github.event.pull_request.draft || |
| 349 | + contains( github.event.pull_request.labels.*.name, 'Draft Workflow Runs' ) |
| 350 | + ) |
302 | 351 | strategy: |
303 | 352 | fail-fast: false |
304 | 353 | matrix: |
|
0 commit comments