Commit 570a20c
committed
workflows: skip download job entirely when start emits the placeholder
The {name:none,...} placeholder existed to keep strategy.matrix
non-empty when there's no work, with a comment promising the
downstream job would 'skip entries with name=none'. The skip was
never implemented — every step would try to source
os/external/${{ matrix.name }}.conf, which fails on
os/external/none.conf because no such file exists.
Job-level `if: matrix.name != 'none'` doesn't work either:
matrix.* isn't available at job-level if-evaluation (it's expanded
after).
Fix: thread a `has_work` boolean output from the start job and gate
the download job on it via a job-level `if:` (needs.* outputs ARE
available there). Set has_work='false' in both placeholder paths
(no matrix entries at all, OR this chunk's slice happens to be
empty). The placeholder still ships to keep strategy.matrix valid,
but the job is skipped before the matrix expands so no runner is
allocated and no source attempt is made.1 parent f16304a commit 570a20c
1 file changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
199 | 206 | | |
200 | 207 | | |
201 | 208 | | |
| |||
367 | 374 | | |
368 | 375 | | |
369 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
370 | 385 | | |
371 | 386 | | |
372 | 387 | | |
373 | 388 | | |
| 389 | + | |
374 | 390 | | |
375 | 391 | | |
376 | 392 | | |
| |||
415 | 431 | | |
416 | 432 | | |
417 | 433 | | |
418 | | - | |
419 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
420 | 438 | | |
421 | 439 | | |
| 440 | + | |
422 | 441 | | |
423 | 442 | | |
424 | 443 | | |
425 | 444 | | |
426 | 445 | | |
427 | 446 | | |
428 | 447 | | |
| 448 | + | |
429 | 449 | | |
430 | 450 | | |
431 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
432 | 458 | | |
433 | 459 | | |
434 | 460 | | |
| |||
0 commit comments